|
-
Jul 4th, 2012, 03:03 PM
#1
Thread Starter
Member
Help Fix,Int,Round?
Hi All
If my resulting number is a negative one i.e
variation.text = -23.214 I need it to be 24
and if the number is positive i.e
variation.text = 23.214 I need it to be 23
How do I go about solving this?
thanks
Rob
-
Jul 4th, 2012, 03:10 PM
#2
Member
Re: Help Fix,Int,Round?
Using the immediate window I get:
? int(23.214)
23
? int(-23.214)
-24
If you need your result to be positive (absolute number) then use abs() function to get final result:
? abs(int(23.214))
23
? abs(int(-23.214))
24
Does that help? SgarV
-
Jul 5th, 2012, 02:45 PM
#3
Thread Starter
Member
(RESOLVED)Re: Help Fix,Int,Round?
Thanks for your prompt reply, it worked a treat.
Keep up the good work
Rob
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|