das ist der quelltext in c++
float zRunden(float x) {
int r;
x = x*10; //nach 2 Stellen
r = x; //abschneiden,
x = r; //zurück nach float
return (x/10);
}
Ich brauche aber das unbedingt in Javascript mit "parsefloat" aber ich bekomme das nicht hin. Kann mir bitte bitte jemand helfen??
thx MFG