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 Professional Discussion / Simple calculation fails :-(

Author
Message
Hannibal
19
Years of Service
User Offline
Joined: 5th Mar 2007
Location:
Posted: 22nd Sep 2013 22:27
b#=1/10
print b#

prints zero on v.1.0761 :-|

Also having difficulty with flat arrays


haf#(0)=1/10
print haf#(0)
prints zero

haf#(0)=0.6
print haf#(0)
print 0.6 as expected


Any ideas?
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 22nd Sep 2013 22:33


TheComet

horses
Hannibal
19
Years of Service
User Offline
Joined: 5th Mar 2007
Location:
Posted: 22nd Sep 2013 22:37
OMG !

Thanks lol
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 22nd Sep 2013 23:47
Integer division is used if both operands are integers. This can be useful at times, as you'll probably see further down the road


"Why do programmers get Halloween and Christmas mixed up?"

Login to post a reply

Server time is: 2026-07-07 00:09:14
Your offset time is: 2026-07-07 00:09:14