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 / TYPE bug or is it the editor?

Author
Message
WLGfx
16
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 19th Jul 2012 05:15 Edited at: 19th Jul 2012 14:17


Prints

0
0.01

EDIT: Should be in the DBP form...

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!
29 games
18
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: not entirely sure
Posted: 20th Jul 2012 00:33 Edited at: 20th Jul 2012 00:36
I know this is currently on the wrong board bUt I thought I'd reply anyway.

It seems that what you've written is the equivalent of:



so the so blah.a is an integer and not a float. So if you wanted to write the type in a single line you would have to write:



or you could write:



and then both are floats.

Login to post a reply

Server time is: 2024-03-28 19:45:26
Your offset time is: 2024-03-28 19:45:26