Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Should I fly to the moon using the cmm2 as flight computer?
Page 3 of 3 | |||||
Author | Message | ||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6792 |
Thanks Peter. I obviously didn't remember correctly. It's something I spend a lot of my time trying to avoid. I've just gone back to the manual and it's GOSUB / RETURN and ON nbr GOTO | GOSUB that are obsolete, not GOTO. I wondered how I was going to manage without that. ;) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
PeteCotton Guru Joined: 13/08/2020 Location: CanadaPosts: 368 |
This conversation reminds me of this article. Pretty interesting stuff, but the synopsis is that NASA only uses PI to 15 decimal places, because even at that - a 48 billion KM diameter circle (the rough distance to Voyager 1) would have an error of 1 cm. https://www.jpl.nasa.gov/edu/news/2016/3/16/how-many-decimals-of-pi-do-we-really-need/ |
||||
zeitfest Guru Joined: 31/07/2019 Location: AustraliaPosts: 482 |
For the maximite and micromites - what happens with a sum like 9000001 + 1.3 ie what is the result ? |
||||
EDNEDN Senior Member Joined: 18/02/2023 Location: United StatesPosts: 118 |
> > ? 9000001 + 1.3 9.0000023e+06 > |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6098 |
micromite ver 5.05.03 ? str$( 9000001 + 1.3,10,0) ? 9000001 + 1.3 9000002 9000002 9e+06 > DuinoMite MMBasic Version 4.0B ? str$( 9000001 + 1.3,10,0) ? 9000001 + 1.3 9.E+06 9.e+06 Jim VK7JH MMedit MMBasic Help |
||||
zeitfest Guru Joined: 31/07/2019 Location: AustraliaPosts: 482 |
I'm not sure what to think on this. The answer for presentation should at least be a float, and arguably with 2 sig fig if scientific notation is to be used.. And the machine should flag any calculation/variable used outside its accuracy limits. It is probably not an issue for most Basic intended use though. Edited 2024-01-05 23:00 by zeitfest |
||||
Page 3 of 3 |
Print this page |