I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
ComputingIo

Format

Number Format

Format a number with grouped thousands.
char* number_format_c (double value, int dp=0, char dec_point= '.' , char thousand_sep= ',')
std::string number_format (double value, int dp=0, char dec_point= '.' , char thousand_sep= ',')

Roundto

RoundDirection
template<class A> A roundTo (A val, int decimalPlaces)
template<class A> A roundTo (A val, int decimalPlaces, RoundDirection rd)
template<class A> A truncTo (A val, int decimalPlaces)