My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 130: Std.parseFloat constitency
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Jul 2011


 
Reported by ncanna...@gmail.com, Jul 16, 2011
The following unit tests fails on -cpp :

  t( Math.isNaN(Std.parseFloat("")) );
  t( Math.isNaN(Std.parseFloat("abcd")) );
  t( Math.isNaN(Std.parseFloat("a10")) );
  t( Math.isNaN(Std.parseFloat(null)) );

Using "strtod" instead of "atof" should fix the issue (this has already been patched in NekoVM).
Jul 20, 2011
Project Member #1 gameh...@gmail.com
Funny, I have already made that change, but missed a "return" statement.
Status: Fixed

Powered by Google Project Hosting