2010/12/16 Christophe Eblé <[email protected]>:
> http://code.google.com/p/jslibs/wiki/JavascriptTips

The prefix integer function doesn't look too good to me. In case the
length is smaller the length of the original number it will return a
decimal number. like

>>> PrefixInteger(12345, 2);
3.45

which is obviously wrong.

I've also made a test to see which function is faster.
http://jsperf.com/prefix-integer

-- 
Poetro

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to