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 / problems with multipli

Author
Message
doffer
21
Years of Service
User Offline
Joined: 21st Nov 2003
Location:
Posted: 29th Dec 2003 12:50
Hi I am making a program in DBC that can calculate your bmi. (Body MAss Index). But i have a problem. I can't multipli and divide my variables.

How do I do that?

Denmark Denmark Denmark.
waffle
22
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 29th Dec 2003 14:32
your using strings ($) instead of integers or floats (#)

internet gaming group
current project http://home.comcast.net/~norman.perry/Archon.html
ReD_eYe
22
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 29th Dec 2003 14:58
bmi$=str$(val(v$)/(val(h$)*val(h$))
use that instead of
bmi$ = v$ / h$*h$


GO TO THE ETERNAL DESTINY FORUMS!!! http://forums.eternaldestinyonline.com
Do it now!!!
doffer
21
Years of Service
User Offline
Joined: 21st Nov 2003
Location:
Posted: 29th Dec 2003 15:21
Thanx I figure it out.

Denmark Denmark Denmark.

Login to post a reply

Server time is: 2025-05-22 08:42:55
Your offset time is: 2025-05-22 08:42:55