Type | Bug | Status | dismissed | Date | 12-Jun-2007 19:00 |
---|---|---|---|---|---|
Version | alpha 31 | Category | n/a | Submitted by | Sunanda |
Platform | All | Severity | trivial | Priority | low |
Summary | Load: not converting int to decimal |
---|---|
Description |
r3: load "1234567890123456789123456" Syntax error: Invalid integer -- 1234567890123456789123456 Where: transcode load R2: >> load "1234567890123456789123456" == 1.23456789012346E+24 |
Example code |
Assigned to | n/a | Fixed in | - | Last Update | 26-Mar-2009 06:27 |
---|
Comments | |
---|---|
(0000070)
admin 25-Jul-2007 02:57 |
Is this conversion ok? Just checking. -Carl I think R2's behavior is best: it loads the data to the thing it most closely resembles: a decimal. Otherwise, how could we easily read in large numbers from external systems, unless they precisely follow REBOL's rules for formating numbers? I have more sympathy for to-integer failing with oversized digit strings.(tracker #126)....It's being asked to do something it isn't supposed to do. -- Sunanda |
(0000260)
BrianH 9-Jan-2009 23:07 |
This seems like a feature to me, particularly with the expanded integer range of R3. Conversion to decimal entails a loss of precision, and I wouldn't want that to happen silently. I vote to dismiss.
This ticket is waiting for consensus (or for Carl to decide). |
(0000505)
Carl 26-Mar-2009 06:27 |
Agreed |
Date | User | Field | Action | Change |
---|---|---|---|---|
26-Mar-2009 06:27 | carl | Comment : 0000505 | Added | - |
26-Mar-2009 06:27 | carl | Status | Modified | waiting => dismissed |
25-Feb-2009 15:22 | BrianH | Comment : 0000260 | Modified | - |
19-Jan-2009 22:58 | BrianH | Version | Modified | => alpha 31 |
19-Jan-2009 22:58 | BrianH | Priority | Modified | none => low |
9-Jan-2009 23:07 | BrianH | Comment : 0000260 | Added | - |
2-Dec-2008 18:50 | Admin | Ticket | Added | - |