Currently have the following javascript code:
div.html( Drupal.t("Date")+": "+d.date+"</br>"+Drupal.t("Value")+": " + (d.value))
Value that i'm getting is 0.1651859999999985 . I wanna round it off to the first four decimal numbers. Any help? I tried Math.ceil(d.value*10)/10)
but it was only getting the first decimal :( Any help? I wanna get 0.1652