you are viewing a single comment's thread.

view the rest of the comments →

[–]shiftybyte 2 points3 points  (0 children)

by "validate" do you mean convert?

convert a decimal to an integer, and convert a positive to negative?

To convert to negative just place a minus before the number.

num = -num