Menu

String to long overflow

Mikam
2024-12-12
2024-12-12
  • Mikam

    Mikam - 2024-12-12

    Hi. Am I doing something really stupid. Conversion from string to Long,
    String=80000 getting conversion value of 14464.
    Rgds

     
  • Anobium

    Anobium - 2024-12-12

    Val(string) returns a word. So, 80,000 and 65535 [max permitted by a word] = 14464

    Use StringtoLong(), StringtoWord(),StringtoByte() etc as Val() does not really help understanding the returned value.

    So, StringtoLong() should resolve.

     
  • Mikam

    Mikam - 2024-12-12

    StringtoLong() resolved the issue.

    Thanks.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.