.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > YappA > Offtopic
Offtopic Just anything. You have time to waste ? Prove it !!!

Reply
 
Thread Tools
True Basic question
Old
  (#1)
Whitman82
This user broke our rules and has been BANNED
 
Status: Offline
Posts: 118
Join Date: Dec 2004
Location: FILTHY!
Default True Basic question - 01-03-2005

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?
  
Reply With Quote
Re: True Basic question
Old
  (#2)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: True Basic question - 01-03-2005

dunno about true basic, but on c64 basic it was something like

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


  
Reply With Quote
Re: True Basic question
Old
  (#3)
sfx1999
Member
 
sfx1999's Avatar
 
Status: Offline
Posts: 534
Join Date: Jan 2004
Location: Pittsburgh, PA, USA
Default Re: True Basic question - 02-03-2005

Isn't there a round function?


sfx1999.postcount++
  
Reply With Quote
Re: True Basic question
Old
  (#4)
Whitman82
This user broke our rules and has been BANNED
 
Status: Offline
Posts: 118
Join Date: Dec 2004
Location: FILTHY!
Default Re: True Basic question - 02-03-2005

Ya, there is a function. Its either "round" or "rnd" but i'm not sure how to use it.
  
Reply With Quote
Re: True Basic question
Old
  (#5)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: True Basic question - 02-03-2005

it's not rnd, this one is for random number generation.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: True Basic question
Old
  (#6)
Whitman82
This user broke our rules and has been BANNED
 
Status: Offline
Posts: 118
Join Date: Dec 2004
Location: FILTHY!
Default Re: True Basic question - 02-03-2005

Ok, but do you know how to use the "round" command?
  
Reply With Quote
Re: True Basic question
Old
  (#7)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: True Basic question - 02-03-2005

dont you have an int command for converting to an integer ? then you could do it like I posted it above


  
Reply With Quote
Re: True Basic question
Old
  (#8)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: True Basic question - 05-03-2005

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/
  
Reply With Quote
Re: True Basic question
Old
  (#9)
Whitman82
This user broke our rules and has been BANNED
 
Status: Offline
Posts: 118
Join Date: Dec 2004
Location: FILTHY!
Default Re: True Basic question - 07-03-2005

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?
  
Reply With Quote
Re: True Basic question
Old
  (#10)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: True Basic question - 10-03-2005

well Windows just sucks

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
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com