Search found 9 matches

by Gordon
Mon Mar 16, 2015 9:30 am
Forum: BASIC programs
Topic: A Vulgar Little Library
Replies: 4
Views: 2360

Re: A Vulgar Little Library

I have added more functionality to the library again, and have edited the first post in this thread to reflect these changes.
by Gordon
Sat Mar 14, 2015 5:35 pm
Forum: Other topics
Topic: Large values of X in RND(X)
Replies: 2
Views: 1455

Re: Large values of X in RND(X)

Thank you. :-)
by Gordon
Sat Mar 14, 2015 4:42 pm
Forum: Other topics
Topic: Large values of X in RND(X)
Replies: 2
Views: 1455

Large values of X in RND(X)

Am I correct in thinking that RND(X) will not return a result larger than 2^31-1, even if X>2^31-1?
by Gordon
Thu Mar 12, 2015 4:28 pm
Forum: BASIC programs
Topic: A Vulgar Little Library
Replies: 4
Views: 2360

Re: A Vulgar Little Library

I have added more functionality to the library, and have edited the first post in this thread to reflect these changes.
by Gordon
Tue Mar 10, 2015 11:08 am
Forum: BASIC programs
Topic: A Vulgar Little Library
Replies: 4
Views: 2360

Re: A Vulgar Little Library

Good catch. I have fixed it.
by Gordon
Tue Mar 10, 2015 10:42 am
Forum: BASIC programs
Topic: A Vulgar Little Library
Replies: 4
Views: 2360

A Vulgar Little Library

Update 2 (final update) Added random numbers and tidied up code and glossary. This will be the final update until I understand Gosper's Algorithm, which, considering its complexity, may be never. When and if I do understand it, this code will be superseded by a complete rewrite. Gosper: http://perl...
by Gordon
Sun Mar 08, 2015 8:29 am
Forum: Other topics
Topic: Value of MAXINT?
Replies: 3
Views: 1640

Re: Value of MAXINT?

Thank you. That was what I thought, but I wanted to be certain. :-)
by Gordon
Fri Mar 06, 2015 5:04 pm
Forum: Other topics
Topic: Value of MAXINT?
Replies: 3
Views: 1640

Value of MAXINT?

I see from the manual (thanks to @Dutchman) that Smart BASIC uses standard 64-bit floating point numbers in 1-11-52 bit patterns for sign-power-mantissa parts. Can I infer from this that any integer with an absolute value smaller than 2^52 will be represented exactly, without rounding, and that if I...
by Gordon
Wed Mar 04, 2015 10:28 pm
Forum: BASIC programs
Topic: Turtle graphics library
Replies: 2
Views: 1635

Turtle graphics library

Hi - my first posting. I got Smart BASIC yesterday and have written a little Turtle Graphics library. It's been about 25 years since I wrote any code, so I will welcome any suggestions or observations about it. Gordon ----- Turtle Graphics --- The turtle in this implementation is invisible. The turt...