x


Absolute Value of a Float

I'm writing a JavaScript - how do I get the absolute value of a float? abs() does not work (as it does in JavaScript).

Thanks.

more ▼

asked Feb 24 '10 at 01:40 AM

GavinR gravatar image

GavinR
63 2 2 6

Please don't assume a solution is specific to Javascript unless you know it. Your question is a general math question that is relevant regardless of language choice.

Feb 25 '10 at 09:40 AM runevision ♦♦
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

It is: Mathf.Abs()

more ▼

answered Feb 24 '10 at 01:52 AM

GavinR gravatar image

GavinR
63 2 2 6

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x211

asked: Feb 24 '10 at 01:40 AM

Seen: 2233 times

Last Updated: Feb 25 '10 at 09:40 AM