Welcome, Guest
Username: Password: Remember me
Visual Objects

Please use this forum to post questions about Visual Objects and Vulcan.NET
  • Page:
  • 1

TOPIC:

Numeric overflow 16 Apr 2020 17:20 #14078

  • mbrown
  • mbrown's Avatar
  • Topic Author


  • Posts: 9
  • I have an application from VO that does a long series of complicated calculations (too much to show here), and uses the run-time compiler to evaluate expressions read from a file, using code-blocks. While using the Vulcan run-time library it was working well, but since updating to version 2.2, and changing to the X# library, it occasionally fails with a numeric overflow error. Inspecting the variable concerned, a USUAL type, at the point of failure in the debugger, shows it to contain a FLOAT with a value of 24736.73, but the 'Digits' property is only 4. Unfortunately I haven't been able to reproduce it in a simple example. I have fixed it by using “result := REAL8(result)”, but is there a better way, or is this a bug?

    Please Log in or Create an account to join the conversation.

    Numeric overflow 16 Apr 2020 17:46 #14082

    • robert
    • robert's Avatar


  • Posts: 3447
  • Michael,
    This sounds like a bug.
    Can you create a small reproducable example ?

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    Numeric overflow 16 Apr 2020 17:54 #14084

    • mbrown
    • mbrown's Avatar
    • Topic Author


  • Posts: 9
  • No, sorry I haven't been able to reproduce it in a simple example.

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1