# Math :o

How would I have a number such as 62.222

or so round to the nearest tenth in Graal D;?

So the number should be 62.

I’m just more or less trying to force it to use absolutely no decimal

(For damage and health and all that junk x_X)

I’m not all that amazing at math compared to anybody here at all ]: (( I suck at math ))

More or less, help me with a formula? x:

does it have something to do with abs considering I want an absolute? D:

((Also just to help me out maybe give me some e-book links for mathematics? :x ))

___Merged doublepost__________________

Holy crackers Nevermind I found out ^-^!

ex:

``#v(int(strtofloat(#s(client.test))*10.090909090909090909090909090909));``

yaya :]]

Now if test is 99 it will be 999 absolute well, in general no matter what it will be absolute with no decimal I’m sure there is a better number to use considering it’s repedative D:

But, I’m not the best, and it works so far, I’ll just change it later when I learn more :>

No Decimal.
int ( 62.222 ) = 62

Rounding Up.
int (62.222 + 0.5) = 62 (Its below 0.5, what did you expect?)

One Decimal.
int(62.222 * 10) / 10 = 62.2 One of the only things that I don’t understand to much is Math functions other than math functions I’m fine in most other things :o

A minute ago I was having issues with this type of thing

(a+b+c)*d

then I learned for that I need to use

absolute ( abs() )

haha!

Maybe I’ll get the math part of graal done in like a month that’s all I really have left to learn really, well and save[] :o

But thank you :]

1 + 2 = 3 NINE TIMES NINE EQUALS EEEEEEEEEEEEEEEEIGHTY-ONE!

distance=((x2-x1)^2+(y2-y1)^2)^0.5

distance = hypotenuse, cause really. its just a triangle. fine >:|

y=D+AsinB(x-C)

D is the sinusoidal axis or linear shift
A is the amplitude
B is 2pi/period
C is the phase shift

Not in a useable graal format I know, but the title of the thread is math.

100 0110 1110 1010 1001 1011 = 4 647 579

I win.

How did you win? Binary can suck the blade of a knife.