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.

DarkBASIC Discussion / Quick Dbc math question

Author
Message
BadMonkey91
21
Years of Service
User Offline
Joined: 13th Jan 2004
Location:
Posted: 20th Apr 2004 18:49
If you have a variable divided by a variable ( a / b ) It doesnt seem to divide them at all. 1 / 20 shud be .05, but it comes up as 20. Does anyone know why and how to fix this?

Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 20th Apr 2004 19:01
should work, but when you divide variables it's best to make them real. (variable#)

So:

a# = 1.0
b# = 20.0

c# = a# / b#

Quote: "
UPDATED

Amd 2800+ 1024mb pc3200 A7N8X - Deluxe Ati Radeon 9800PRO 256mb
"
BadMonkey91
21
Years of Service
User Offline
Joined: 13th Jan 2004
Location:
Posted: 20th Apr 2004 19:25
I've been programming for years, and I've never known exacally why they tell you to use #. It works now, Thanks a lot baal! even though you are satan's brother.

Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 20th Apr 2004 19:42
Thats why my house number is 667

Quote: "
UPDATED

Amd 2800+ 1024mb pc3200 A7N8X - Deluxe Ati Radeon 9800PRO 256mb
"

Login to post a reply

Server time is: 2025-05-24 00:24:00
Your offset time is: 2025-05-24 00:24:00