![]() |
True Basic question
Anyone know how to use true basic? When i'm doing a calculation, how to i get it to round my answer to the nearest tenth?
|
Re: True Basic question
dunno about true basic, but on c64 basic it was something like
int(a * 10 + 0,5) / 10 |
Re: True Basic question
Isn't there a round function?
|
Re: True Basic question
Ya, there is a function. Its either "round" or "rnd" but i'm not sure how to use it.
|
Re: True Basic question
it's not rnd, this one is for random number generation.
|
Re: True Basic question
Ok, but do you know how to use the "round" command?
|
Re: True Basic question
dont you have an int command for converting to an integer ? then you could do it like I posted it above
|
Re: True Basic question
I don't think BASIC has a round function, joe's way is the only way to do rounding...
PHP Code:
btw... http://www.yabasic.de/ |
Re: True Basic question
I've been using True Basic on a different computer other than the one i'm using now, because for some reason every time i try to install it, i get this message:
E:\WINDOWS\SYSTEM32\AUTOEXEC.NT. The system file is not suitable for running MS-DOS and Microsoft Windows applications. Choose 'Close' to terminate the application. It getting annoying, cause i want to use it on my computer. Any idea what that error means? |
Re: True Basic question
well Windows just sucks :P
try a native Windows version of BASIC instead, like YaBASIC. I'm also not sure if M$ QBasic will work also if you really want to use True Basic, I think you'd better reinstall Windows. You've bought Windows and you have to repeat the sequence over and over and over again :D |
All times are GMT +2. The time now is 08:17. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.