Se ho, per esempio, 0.954267. Come faccio ad arrotondare il numero nelle due prime cifre dopo la virgola (0.95)?
Se ho, per esempio, 0.954267. Come faccio ad arrotondare il numero nelle due prime cifre dopo la virgola (0.95)?
codice:n=0.954267; n*=100; n = Math.round(n); n/=100; trace(n);
powered by GNU/Linux Gentoo
A Elbereth Gilthoniel o menel palan-diriel, le nallon sí di-nguruthos! A tiro nin, Fanuilos!