Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 23:19 26 Nov 2024 Privacy Policy
Jump to

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 Kingdom
Posts: 6792
Posted: 04:50pm 02 Jan 2024
Copy link to clipboard 
Print this post

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: Canada
Posts: 368
Posted: 10:09pm 02 Jan 2024
Copy link to clipboard 
Print this post

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: Australia
Posts: 482
Posted: 12:10am 03 Jan 2024
Copy link to clipboard 
Print this post

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 States
Posts: 118
Posted: 12:45am 03 Jan 2024
Copy link to clipboard 
Print this post

  zeitfest said  For the maximite and micromites - what happens with a sum like

  9000001 + 1.3

ie what is the result ?



>
> ? 9000001 + 1.3
9.0000023e+06
>
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6098
Posted: 01:50am 03 Jan 2024
Copy link to clipboard 
Print this post

  zeitfest said  For the maximite and micromites - what happens with a sum like

  9000001 + 1.3

ie what is the result ?



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: Australia
Posts: 482
Posted: 12:59pm 05 Jan 2024
Copy link to clipboard 
Print this post

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


To reply to this topic, you need to log in.

© JAQ Software 2024