# HG changeset patch # User Claus Gittinger # Date 1525769631 -7200 # Node ID 8935a8d5b08dc7d7e6466344b760a9c84e32ceca # Parent 8c34c5e0451a990fb9dbdd84ddde075a0aac33b2 #DOCUMENTATION by cg class: QDouble class comment/format in: #documentation diff -r 8c34c5e0451a -r 8935a8d5b08d QDouble.st --- a/QDouble.st Sun May 06 03:31:30 2018 +0200 +++ b/QDouble.st Tue May 08 10:53:51 2018 +0200 @@ -1,3 +1,5 @@ +"{ Encoding: utf8 }" + " COPYRIGHT (c) 2017 by eXept Software AG All Rights Reserved @@ -658,7 +660,8 @@ you still get only a regular double precision approximation to 0.1 because the error is already inherit in the double. - For a full precision constant, you need to convert from a string: + For a full precision constant, you (currently) need to convert from a string + (because the compilers do not know about then, yet): qd := QDouble readFrom:'0.1'. To see the error of the double precision version, compute: @@ -2252,7 +2255,7 @@ 1 asQDouble exp_withAccuracy:LongFloat epsilon 2.71828182845904523536 1 asQDouble exp_withAccuracy:Float epsilon 2.71828182845904522671 - 1.7392749415205010473946813036112352261479840577250084... × 10^18 + 1.7392749415205010473946813036112352261479840577250084... × 10^18 42 asQDouble exp_withAccuracy:QDouble epsilon NAN 42 asQDouble exp_withAccuracy:LongFloat epsilon 1.73927494152050104739e18