#include <xtd/console>
#include <xtd/environment>
#include <xtd/double_object>
#include <xtd/string>
auto main() -> int {
console::out << string::sprintf("%f", 12.345) << environment::new_line;
console::out << string::sprintf("%F", 12.345) << environment::new_line;
console::out << string::sprintf("%e", 12.345) << environment::new_line;
console::out << string::sprintf("%E", 12.345) << environment::new_line;
console::out << string::sprintf("%g", 12.345) << environment::new_line;
console::out << string::sprintf("%G", 12.345) << environment::new_line;
console::out << string::sprintf("0x%a", 12.345) << environment::new_line;
console::out << string::sprintf("0x%A", 12.345) << environment::new_line;
console::out << string::sprintf("%G", double_object::epsilon) << environment::new_line;
console::out << string::sprintf("%f", double_object::NaN) << environment::new_line;
console::out << string::sprintf("%f", double_object::positive_infinity) << environment::new_line;
console::out << string::sprintf("%f", double_object::negative_infinity) << environment::new_line;
}
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10