REBOL3 tracker
  0.9.12 beta
Ticket #0000547 User: anonymous

Project:



rss
TypeBug Statusdismissed Date18-Jan-2009 01:03
Versionalpha 31 Categoryn/a Submitted bySunanda
PlatformAll Severitynot a bug Prioritylow

Summary to-decimal works badly with issue!
Description to-decimal works badly with issue!

(under R2, it does not work at all!)
Example code
>> to-decimal #1
== 4.94065645841247e-324

Assigned ton/a Fixed in- Last Update16-Dec-2009 06:56


Comments
(0000342)
BrianH
20-Jan-2009 04:42

We should discuss in R3 chat whether to-decimal should work with issue, and how this relates to the overall conversion strategy when we get one of those.
(0000360)
Carl
23-Jan-2009 02:38

This is actually a feature, not a bug. It is a conversion from hex format to decimal, just like with the integer! datatype.

The representation is IEEE 64 bit.

>> to-decimal #3FF199999999999A
== 1.1

It was requested by Geomol.
(0001862)
Sunanda
16-Dec-2009 06:56

Decimal conversion of issue no longer works:

>> to-decimal #1
** Script error: cannot MAKE/TO decimal! from: #1
** Where: to to-decimal
** Near: to decimal! :value

Not sure if that is better or worse :)

Date User Field Action Change
16-Dec-2009 06:56 sunanda Comment : 0001862 Added -
12-Feb-2009 22:17 BrianH Severity Modified minor => not a bug
23-Jan-2009 02:38 carl Comment : 0000360 Modified -
23-Jan-2009 02:38 carl Status Modified waiting => dismissed
23-Jan-2009 02:38 carl Comment : 0000360 Added -
20-Jan-2009 04:42 BrianH Comment : 0000342 Added -
20-Jan-2009 04:40 BrianH Status Modified submitted => waiting
20-Jan-2009 04:40 BrianH Priority Modified normal => low
18-Jan-2009 19:14 BrianH Summary Modified issue => to-decimal works badly with issue!
18-Jan-2009 19:14 BrianH Description Modified -
18-Jan-2009 19:14 BrianH Code Modified -
18-Jan-2009 01:03 sunanda Ticket Added -