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

Name

skalier_uf_Eis()

Examples
Komazahl  value = 20;
Komazahl  n = skalier_uf_Eis(value, 0, 50);
schrib_uf_e_neui_Linie(n);  // prints "0.4"
Description Normalizes a number from another range into a value between 0 and 1.

Identical to Raechne_um(value, low, high, 0, 1);

Numbers outside the range are not clamped to 0 and 1, because out-of-range values are often intentional and useful.
Syntax
skalier_uf_Eis(value, low, high)
Parameters
value Komazahl : The incoming value to be converted
low Komazahl : Lower bound of the value's current range
high Komazahl : Upper bound of the value's current range
Usage Web & Application
Related Raechne_um()
Zwueschewert()
Stefan Baltensperger 2009

Creative Commons License