|Aug 13, 2003, 01:38 PM||#1|
It seems the method is varname.toExponential(a), where a inside is the number of decimal places to which you want the number rounded.
The problem is, this method seems to not work with Safari, so I was wondering what the best way is to check if a browser supports this method, and if it doesn't, then just display the big long number. I don't want to simply browser sniff for Safari, because other browsers (like Mac IE) don't support it either -- so it would be nice just to check if the browser supports the function, and then use it if it does.
|Aug 13, 2003, 03:54 PM||#2|
I think this is what you want:
On Safari (1.1) I only see the first alert.
Sponsor me to cycle 100Km round London in the dark
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Small question about RAM||esadb||MacBook||10||Jul 18, 2012 06:09 AM|
|Small question||tmshipp||Jailbreaks and iOS Hacks||0||Jun 14, 2012 11:34 AM|
All times are GMT -5. The time now is 04:01 AM.