Post Reply 
Gerson's Pi Program
03-01-2022, 09:39 AM (This post was last modified: 03-12-2022 09:13 AM by EdS2.)
Post: #7
RE: Gerson's Pi Program
Very nice! I'd like to port it to BBC Basic, where we have 4 byte integers and 5 byte floats. But it's not working... any ideas?

Minor notes:

The DEFINT are ignored, because in BBC Basic we need to decorate integer variables with % suffix. I was hoping that would merely be a speed advantage as the 5 byte floats are very nearly as good as the 4 byte ints for accuracy and range.

I took the ! off the end of the B=100000000 but I don't know what it means.

I changed the \ operators to DIV, guessing that this is what's meant.

I changed the printing to print an integer rounded version of the number.

Here's the link.

(Edit: typo for 4 byte ints)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Gerson's Pi Program - EdS2 - 12-28-2020, 11:20 AM
RE: Gerson's Pi Program - Allen - 12-28-2020, 01:15 PM
RE: Gerson's Pi Program - EdS2 - 12-29-2020, 09:15 AM
RE: Gerson's Pi Program - EdS2 - 03-01-2022 09:39 AM
RE: Gerson's Pi Program - EdS2 - 03-02-2022, 11:17 AM
RE: Gerson's Pi Program - EdS2 - 03-04-2022, 04:50 PM
RE: Gerson's Pi Program - Valentin Albillo - 03-08-2022, 05:42 PM
RE: Gerson's Pi Program - EdS2 - 03-10-2022, 07:47 AM
RE: Gerson's Pi Program - Valentin Albillo - 03-10-2022, 11:48 AM
RE: Gerson's Pi Program - Ángel Martin - 03-09-2022, 08:12 AM
RE: Gerson's Pi Program - EdS2 - 03-11-2022, 12:42 PM
RE: Gerson's Pi Program - EdS2 - 03-15-2022, 07:44 AM



User(s) browsing this thread: 1 Guest(s)