.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Offtopic (http://forums.bots-united.com/forumdisplay.php?f=23)
-   -   True Basic question (http://forums.bots-united.com/showthread.php?t=3674)

Whitman82 01-03-2005 22:15

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?

@$3.1415rin 01-03-2005 23:19

Re: True Basic question
 
dunno about true basic, but on c64 basic it was something like

int(a * 10 + 0,5) / 10

sfx1999 02-03-2005 00:11

Re: True Basic question
 
Isn't there a round function?

Whitman82 02-03-2005 02:10

Re: True Basic question
 
Ya, there is a function. Its either "round" or "rnd" but i'm not sure how to use it.

Pierre-Marie Baty 02-03-2005 03:07

Re: True Basic question
 
it's not rnd, this one is for random number generation.

Whitman82 02-03-2005 03:22

Re: True Basic question
 
Ok, but do you know how to use the "round" command?

@$3.1415rin 02-03-2005 11:32

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

Whistler 05-03-2005 01:57

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:

10 a int(rnd 10 0.5)
20 print 

this will print a random number in from 0 to 10

btw...
http://www.yabasic.de/

Whitman82 07-03-2005 02:34

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?

Whistler 10-03-2005 12:33

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.