Announcement

Collapse
No announcement yet.

math question: negative numbers

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • naxo
    replied
    Hi, ok I get it, its seems that "-" is too a string (i was not too sure on that)
    I was thinking in using tostring but I was wondering how do I get that. Thanks!

    Leave a comment:


  • Cybergraph
    replied
    Originally posted by naxo View Post
    Hi;

    How can I know if I write from input is a negative number?
    First, at level of string, checking if the left most character is a "-" (minus), using String.Left function.

    Second, you could convert the string to a number, and check if it is < 0.

    Leave a comment:


  • naxo
    started a topic math question: negative numbers

    math question: negative numbers

    Hi;

    How can I know if I write from input is a negative number?
Working...
X
😀
🥰
🤢
😎
😡
👍
👎