Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger

Name

machen_Satz_us_de_Zahl_und_setz_es_Koma()

Examples
Ganzizahl i = 500000; 
Satz si = machen_Satz_us_de_Zahl_und_setz_es_Koma(i);
schrib_uf_e_neui_Linie(si);  // Prints "500,000"
Komazahl  f = 42525.34343; 
Satz fi = machen_Satz_us_de_Zahl_und_setz_es_Koma(f, 2);
schrib_uf_e_neui_Linie(fi);  // Prints "42,525.34"
Description Utility function for formatting numbers into strings and placing appropriate commas to mark units of 1000. There are two versions, one for formatting ints and one for formatting an Lischte of ints. The value for the digits parameter should always be a positive integer.
Syntax
machen_Satz_us_de_Zahl_und_setz_es_Koma(intValue)
machen_Satz_us_de_Zahl_und_setz_es_Koma(Komazahl Value, right)
Parameters
intValue Ganzizahl or Ganzizahl[]: the number(s) to format
Komazahl Value Komazahl or Komazahl []: the number(s) to format
right Ganzizahl: number of digits to the right of the decimal point
Usage Web & Application
Related machen_Satz_usdeZahl()
nfs()
nfp()
Stefan Baltensperger 2009

Creative Commons License