Sorry for the silly question:
Int x := 4 Int y := 3
I've to divide x by y but i'd like to see 1.3333333... on my screen, not 1
Float z z := x / y doesn't work
how can i do? Thx.
Try this:
z := x.toFloat / y.toFloat
Yes it woks, obviously.....
Coming from C# i was trying something like
z := (Float)y / (Float)x
Thanks and sorry for banality
No problem ;)
Login or Signup to reply.
Rekdal Tue 15 May 2012
Sorry for the silly question:
Int x := 4 Int y := 3
I've to divide x by y but i'd like to see 1.3333333... on my screen, not 1
Float z z := x / y doesn't work
how can i do? Thx.
andy Tue 15 May 2012
Try this:
Rekdal Tue 15 May 2012
Yes it woks, obviously.....
Coming from C# i was trying something like
z := (Float)y / (Float)x
Thanks and sorry for banality
andy Tue 15 May 2012
No problem ;)