when I cout out my float called a it writes out 1 but i wrote:
float a = 3/2;
why does this happend?
It don't when I use *
English please.
[QUOTE=yellowoboe;19600494]English please.[/QUOTE]
I try my hardest.
Try 3.0/2.0.
[QUOTE=likesoursugar;19600478]when I cout out my float called a it writes out 1 but i wrote:
float a = 3/2;
why does this happend?
It don't when I use *[/QUOTE]
write 3 as 3.f and 2 as 2.f
[editline]04:59PM[/editline]
Also we have a programming forum: [url]http://www.facepunch.com/forumdisplay.php?f=240[/url]
[QUOTE=NorthernGate;19600557]write 3 as 3.f and 2 as 2.f
[editline]04:59PM[/editline]
Also we have a programming forum: [url]http://www.facepunch.com/forumdisplay.php?f=240[/url][/QUOTE]
thank you alot.
[QUOTE=likesoursugar;19600505]I try my hardest.[/QUOTE]
You gotta be shittin me.
Sorry, you need to Log In to post a reply to this thread.