Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger
| Name | machen_Satz_usdeZahl() |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Examples | Ganzizahl a=200, b=40, c=90; Satz sa = machen_Satz_usdeZahl(a, 10); schrib_uf_e_neui_Linie(sa); // prints "0000000200" Satz sb = machen_Satz_usdeZahl(b, 5); schrib_uf_e_neui_Linie(sb); // prints "00040" Satz sc = machen_Satz_usdeZahl(c, 3); schrib_uf_e_neui_Linie(sc); // prints "090" Komazahl d = 200.94, e = 40.2, f = 9.012; Satz sd = machen_Satz_usdeZahl(d, 10, 4); schrib_uf_e_neui_Linie(sd); // prints "0000000200.9400" Satz se = machen_Satz_usdeZahl(e, 5, 3); schrib_uf_e_neui_Linie(se); // prints "00040.200" Satz sf = machen_Satz_usdeZahl(f, 3, 5); schrib_uf_e_neui_Linie(sf); // prints "009.01200" |
||||||||||
| Description | Utility function for formatting numbers into strings. There are two versions, one for formatting Komazahl s and one for formatting ints. The values for the digits, left, and right parameters should always be positive integers. | ||||||||||
| Syntax | machen_Satz_usdeZahl(intValue, digits) machen_Satz_usdeZahl(Komazahl Value, left, right) |
||||||||||
| Parameters |
|
||||||||||
| Usage | Web & Application | ||||||||||
| Related | nfs() nfp() machen_Satz_us_de_Zahl_und_setz_es_Koma() |

