|
Posted by Fabian Hore on 09/28/86 11:41
abs()
for absolute.
"Bonge Boo!" <bingbong@spamcop.net> wrote in message
news:C02E1407.17240%bingbong@spamcop.net...
> This is driving me slightly nuts. I want to do some very simple
> arithmetic,
> but always make sure I return a positive number, even if the result of the
> calculation is a negative.
>
> Basically convert -4 to 4, etc.
>
> So I've been trawling the manual for functions and Googling, and can't
> find
> a thing. Lots of stuff about formatting string with sprintf, and stuff
> about
> converting float to ints, but nothing as obvious as this.
>
> Suggestions gratefully received.
>
Navigation:
[Reply to this message]
|