x


Math.round not work

i have a float : lahmacunbuff = 3.16666 how can i make it 3

i tried this but aint work math.Round(lahmacunbuff)

more ▼

asked Dec 18 '10 at 09:29 PM

bisaniyehocam gravatar image

bisaniyehocam
148 35 39 47

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

1 answer: sort voted first

It's Mathf.Round, not math.Round.

more ▼

answered Dec 18 '10 at 09:30 PM

Eric5h5 gravatar image

Eric5h5
81.5k 42 133 529

2 words a " , " and 2 references. I couldn't explain it better if I tried, and most certainly not using less words or symbols! +1

Dec 18 '10 at 11:10 PM Proclyon

I could have left off "It's". ;)

Dec 18 '10 at 11:11 PM Eric5h5
(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:

x222
x24
x20

asked: Dec 18 '10 at 09:29 PM

Seen: 1602 times

Last Updated: Dec 18 '10 at 09:29 PM