x


converting negative float value to positive value

in my game i want to convert the negative float value to positive float value .i always want to automatically convert the the negative float value i got in the game to the positive float http://value.It should not display - symbol before the number.

more ▼

asked Jun 05 '12 at 09:59 AM

robert_mathew gravatar image

robert_mathew
522 27 36 44

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Mathf.Abs() get your positive value.

more ▼

answered Jun 05 '12 at 10:02 AM

sooncat gravatar image

sooncat
175 3 9 11

(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:

x1

asked: Jun 05 '12 at 09:59 AM

Seen: 889 times

Last Updated: Jun 05 '12 at 10:13 AM