Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 04:16 02 May 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 : Guest Book : MMBasic

Author Message
RicM
Regular Member

Joined: 05/02/2022
Location: Australia
Posts: 51
Posted: 02:06am 06 Feb 2022
Copy link to clipboard 
Print this post

How do you keep part of the number after the decimal point I was thinking of using the FUNCTION Command.

Any ideas

Kind Regards

RicM
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 844
Posted: 04:36am 06 Feb 2022
Copy link to clipboard 
Print this post

Hi RicM

You should probably post MMbasic questions in the  Microcontroller and PC projects section. Also say which MMBasic system you use (e.g. CMM2 ,Picomite )as their maybe some differences.
see the STR$ function in the manual.  STR$( number, m, n )  where n is number of decimal places
If it is a picomite the FORMAT$ function has some options as well

Regards
Gerry
Edited 2022-02-06 14:36 by disco4now
Latest F4 Latest H7
 
Print this page


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

© JAQ Software 2024