Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / dividing two numbers

Author
Message
1beginner1
15
Years of Service
User Offline
Joined: 28th Jun 2009
Location: Belgium
Posted: 5th Feb 2011 18:31
hello

I want to divide 340 by 300 and get 1.13, But I always get 1 because he rounds off. How can I fix this.
This is the part of my code where the problem is.
kamac
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 5th Feb 2011 18:42


Variables needs to be floats to do that

In progress of making Archery Simulator... Or maybe not simulator x]?

@There'll be a sig @
1beginner1
15
Years of Service
User Offline
Joined: 28th Jun 2009
Location: Belgium
Posted: 5th Feb 2011 18:45
tnx for the fast response.
It is working now

tnx
kamac
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 5th Feb 2011 18:46
Quote: "tnx for the fast response.
It is working now

tnx"


You're welcome

In progress of making Archery Simulator... Or maybe not simulator x]?

@There'll be a sig @

Login to post a reply

Server time is: 2024-09-29 00:25:34
Your offset time is: 2024-09-29 00:25:34