home *** CD-ROM | disk | FTP | other *** search
- 'This program gives you a precision output
- 'and can be inserted into any program
- 'using
- gosub convert
- end
- 'this would be placed at the end of your program
- convert:
- input "What precision do you want" p
- i = 1
- do while i<=p
- i = i+1
- numbertoconvert = numbertoconvert*10
- loop
- numberconverted = round(numbertoconvert)
- do while i>0
- i=i-1
- numberconverted=numberconverted/10
- loop
- return