Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #436 (closed defect: fixed)

Opened 17 years ago

Last modified 17 years ago

Error when parsing exponents (text.convert.Float)

Reported by: anders0 Assigned to: kris
Priority: trivial Milestone: 0.98 RC 2
Component: Tango Version: trunk
Keywords: Float Cc:

Description

tango.text.convert.Float.parse sets 'ate' incorrect, when parsing exponents.

char[] test = "1.0e0 5".dup;
float x = Float.parse(test, &len);
Cout(test[len..$]);

Outputs "0 5". A possible fix is to change line 302 of Float.d from:
p += eaten; to
p += eaten + 1

Change History

04/29/07 17:58:37 changed by larsivi

  • milestone set to 0.98 RC 2.

05/01/07 20:48:43 changed by kris

  • status changed from new to closed.
  • version changed from 0.97 RC1 to trunk.
  • resolution set to fixed.

fixed in [2126]

Thanks, Anders