Recent

Author Topic: Question on Inverse and Hyperbolic Trigonometric functions  (Read 1952 times)

Paolo

  • Sr. Member
  • ****
  • Posts: 367
Re: Question on Inverse and Hyperbolic Trigonometric functions
« Reply #30 on: December 29, 2022, 03:42:46 pm »
Quote
but now most users don't understand why the condition "if 1.3+1.4 = 2.7"  reports false..

I understand your point ! But consider that not all people have the right understanding about floating point representation and involved math.

I have just a note about the debug-window, consider the code as below

Code: Pascal  [Select][+][-]
  1. var
  2.   f1, f2 : double;
  3. ..
  4.   f1:=some calculation
  5.   f2:=some calculation
  6. ..
  7.  

it may happen that the two values are such f1 <> f2 but debug-window still shows the same decimal numbers, let me say something like

f1=3.123456789
f2=3.123456789

you showed me that writestr at least shall report different values on the output string (not the fully expanded decimal I am looking for), why not having at least such representation (the same given by writestr) in the debug windows ? this allow easily (without looking at binary repreentation) see that they are different.

thanks again.

Bart

  • Hero Member
  • *****
  • Posts: 4938
    • Bart en Mariska's Webstek
Re: Question on Inverse and Hyperbolic Trigonometric functions
« Reply #31 on: December 31, 2022, 04:58:18 pm »
Finally submitted a patch.
Thanks to all who helped.

Bart

 

TinyPortal © 2005-2018