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) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)