I must be missing something simple....
If in a script I have
r = p / r ;
And then show a debug dialogue, r is always an integer. How do I get a decimal result?
Division
Moderator: Martin
Re: Division
Code: Select all
r = 5/2 //r = 2
r = 5/2.0 // r = 2.5
r = 5.0/2 // r = 2.5
r = 5.0/2.0 // r = 2.5