REBOL3 tracker
  0.9.12 beta
Ticket #0001504 User: anonymous

Project:



rss
TypeIssue Statustested Date24-Feb-2010 19:17
Versionalpha 97 CategoryDatatype Submitted bymeijeru
PlatformAll Severityminor Prioritynormal

Summary PERCENT! values with exponent notation not allowed on input, but can be made by MAKE/TO
Description Like their close cousins, decimal values, percent values can be made by MAKE/TO from a block containing two numbers, of which the second is interpreted as an exponent (E notation). However, on input, such a value is not recognized.
Example code
>> make percent! [1 18]
== 1e18%
>> 1e18%
** Syntax error: invalid "decimal" -- "1e18%"

Assigned ton/a Fixed inalpha 108 Last Update20-Oct-2010 03:12


Comments
(0002047)
Sunanda
24-Feb-2010 21:52

Possibly related to #1475
(0002051)
BrianH
1-Mar-2010 23:22

It's the same as #1475, but with some added details.

The issue here is either in MOLD or LOAD. MOLD is generating scientific notation for certain percent! values, and LOAD isn't recognizing that scientific notation. So either MOLD needs to be changed to not generate that syntax, or LOAD changed to recognize it.

The behavior of MAKE and TO is fine as is. MAKE and TO don't do any printing or syntax generation, the value is output by MOLD.
(0002525)
Carl
22-Sep-2010 04:48

Ok, we'll allow it.

Date User Field Action Change
20-Oct-2010 03:12 BrianH Status Modified built => tested
22-Sep-2010 04:48 carl Code Modified -
22-Sep-2010 04:48 carl Fixedin Modified => alpha 108
22-Sep-2010 04:48 carl Status Modified submitted => built
22-Sep-2010 04:48 carl Comment : 0002525 Added -
1-Mar-2010 23:45 BrianH Comment : 0002051 Modified -
1-Mar-2010 23:22 BrianH Comment : 0002051 Added -
24-Feb-2010 21:52 sunanda Comment : 0002047 Added -
24-Feb-2010 19:17 meijeru Ticket Added -