Posts: 52
Threads: 9
Joined: Sep 2022
Reputation:
0
Hello. Is there a way to fix this problem?
A# = 3
PRINT USING "##"; A#
as a result I get "3"
how to modify the line so that the result is "03"
but if A# = 31 it should display "31"
thanks - Chris
Posts: 3,446
Threads: 376
Joined: Apr 2022
Reputation:
345
05-11-2025, 09:20 AM
(This post was last modified: 05-11-2025, 09:20 AM by SMcNeill.)
Print Right$("00" + _ToStr$(A#), 2)
Posts: 4,692
Threads: 222
Joined: Apr 2022
Reputation:
322
05-11-2025, 10:05 AM
(This post was last modified: 05-11-2025, 10:06 AM by bplus.)
_ToStr$ when did you guys comeup with that? So nice to be rid of Trim$(Str$(mynumber))
PLUS you can control decimal places in decimal numbers!
724 855 599 923 575 468 400 206 147 564 878 823 652 556 bxor cross forever
Posts: 52
Threads: 9
Joined: Sep 2022
Reputation:
0
05-13-2025, 08:41 PM
(This post was last modified: 05-13-2025, 08:42 PM by Chris.)
Print Right$("00" + _ToStr$(A#), 2)
result: invalid name.
Posts: 52
Threads: 9
Joined: Sep 2022
Reputation:
0
05-14-2025, 07:48 AM
(This post was last modified: 05-14-2025, 10:06 AM by Chris.)
SMcNeill
Great. It works. Thank You very much.
Regards - Chris