Home My Page Projects Code Snippets Project Openings SML/NJ Bugs
Summary Activity Tracker Lists

[#66] Real.toLargeInt hangs when rounding mode has been previously set to TO_ZERO

Date:
2011-03-08 23:33
Priority:
3
State:
Open
Submitted by:
Bug Submitter (webuser)
Assigned to:
Matthias Blume (blume)
Machine Architecture:
x86
Operating System:
Other
Component:
SML/NJ Library
Resolution:
None
Severity:
Major
OS Version:
Windows 7 x64
SML/NJ Version:
110.72
Keywords:
reals, basis library
URL:
Transcript (of reproduction):
Standard ML of New Jersey v110.72 [built: Fri Feb 05 10:57:49 2010] - IEEEReal.setRoundingMode IEEEReal.TO_ZERO ; [autoloading] [library $SMLNJ-BASIS/basis.cm is stable] [autoloading done] val it = () : unit - Real.toLargeInt IEEEReal.TO_ZERO 10.0 ; [autoloading] [autoloading done] Interrupt -
Source (for reproduction):
IEEEReal.setRoundingMode IEEEReal.TO_ZERO; Real.toLargeInt IEEEReal.TO_ZERO 10.0;
Summary:
Real.toLargeInt hangs when rounding mode has been previously set to TO_ZERO

Detailed description
Real.toLargeInt hangs if the global rounding mode has been set to
TO_ZERO.

Fix:
(* Sorry *)

Submitted via web form by Dan DuVarney duvarney@gmail.com

Comments:

Message  ↓
Date: 2011-03-22 15:02
Sender: John Reppy

It looks like the problem is in the function Real64.toLargeInt

Attached Files:

Changes

Field Old Value Date By
assigned_tolarsberg2011-03-22 15:02jhr
assigned_tonone2011-03-22 13:35jhr