Menu

#92 Mac OS 8.1, THINK Pascal: round() truncates iso rounding

open
nobody
9
2009-12-01
2009-12-01
No

Example: round(4.7) = 4 iso 5.
This can most easily be seen in the Observe window
VERSIONS:
Mac OS X v. 10.6.2
Emulating Mac OS 8.1
Basilisk II v. 1.0 (2009-10-04); BasiliskIIGUI v. 1.0
THINK Pascal v. 4.0.2
Does not depend on BIIGUI "Enable JIT Compiler" status nor on "Compile FPU Instruction" status
Does not depend on which SANE lib is used (SANELib.lib or SANELib881.lib)
Does not depend on Compile Options (Elems881 can be TRUE or FALSE; Code Generation 68881/68882 can be checked or unchecked)
Occurs whether compiled or interactive
Does not depend on whether the BasiliskII.app is launched or BasiliskII is started from the BasiliskIIGUI.app

Discussion

  • Anonymous

    Anonymous - 2009-12-01

    Observe window displaying bad round(4.7) value

     
  • Anonymous

    Anonymous - 2009-12-01
    • priority: 5 --> 9
     
  • Anonymous

    Anonymous - 2009-12-01

    Because of upload file size restrictions, I can't upload the THINK Pascal app and the related files necessary to reproduce the bug. If you want a zip file that will enable you to reproduce the bug, please email me at tom@hawksbillcapital.com.

     
  • Anonymous

    Anonymous - 2009-12-01
    • summary: round() function truncates iso rounding --> Mac OS 8.1, THINK Pascal: round() truncates iso rounding
     
  • Anonymous

    Anonymous - 2009-12-01

    PS: Turns out that no SANE lib is involved, only SANE.p.

     
  • Nobody/Anonymous

    o4zgf2 <a href="http://xclmwpmflzhn.com/">xclmwpmflzhn</a>, [url=http://tgzkdzfafptz.com/]tgzkdzfafptz[/url], [link=http://fgdwryqdsxqv.com/]fgdwryqdsxqv[/link], http://dsfysknuueyr.com/

     

Log in to post a comment.