Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 16:49 19 Nov 2025 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 : FORMAT$ Expansion?

Author Message
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 480
Posted: 10:31am 03 Sep 2021
Copy link to clipboard 
Print this post

In the benchmark programs, I changed the output line to

print format$(34/t*loops,"Index:% 4.2f")


This gives a display with only two decimal places.

Are there any plans to expand the capability of FORMAT$ to allow digit separators such as commas, periods or spaces?

1 000 000  or 1,000,000 or 1.000.000

is easier to read than

1000000

IMHO.
Edited 2021-09-03 20:38 by toml_12953
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10610
Posted: 10:42am 03 Sep 2021
Copy link to clipboard 
Print this post

  Quote  Are there any plans to expand the capability of FORMAT$ to allow leading currency signs or digit separators such as commas, periods or spaces?

No: format$ uses the C standard format characters see here and that isn't part of C
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4147
Posted: 11:08am 03 Sep 2021
Copy link to clipboard 
Print this post

  toml_12953 said  In the benchmark programs, I changed the output line to

print format$(34/t*loops,"Index:% 4.2f")


This gives a display with only two decimal places.

Are there any plans to expand the capability of FORMAT$ to allow digit separators such as commas, periods or spaces?

1 000 000  or 1,000,000 or 1.000.000

is easier to read than

1000000

IMHO.

Just DIY :)

John
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2171
Posted: 11:22am 03 Sep 2021
Copy link to clipboard 
Print this post

  toml_12953 said  
Are there any plans to expand the capability of FORMAT$ to allow digit separators such as commas, periods or spaces?
...
is easier to read


Consider this for sci-notation etc.
Edited 2021-09-03 21:23 by CaptainBoing
 
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025