{BUG] In number coercion!

David A. Bayly dbayly at udena.ch
Mon Oct 8 13:11:49 PDT 2001


The following quickscript

number("2,1")

returns the value 21.

All other non numeric characters that I tried in place of the comma 
correctly yield an error  citing non numeric characters.  2.1 returns 
2 as expected.

Mac 9.1 US system, Frontier 7.1.

Took me ages to find this , it was tripping up the metadata plugin.

Unfortunately, I have frequently used  a construct like

try
           number(s)
else
	scriptError(s + " is not a number")

Working around this is going to be extremely time consuming.
-- 

- David Bayly.       Programmer and digest reader.     dbayly at udena dot ch
   		Digest Readers do it once a day.




More information about the Frontier-Server mailing list