|
Post by dragonjim on Oct 3, 2023 17:20:25 GMT 1
Just a quick query: does anyone use the Using function (as in Print Using("#.####",PI))?
From my experimentation, the handling of numeric values is incorrect as the above returns 314.15E-04 rather than 3.1416.
Has anyone else had any problems with this?
|
|
|
Post by Roger Cabo on Oct 3, 2023 17:50:27 GMT 1
I currently use a urgent program with this version. I don't want to install any newer version, because it's not possible to setup the installation path for testing purposes. I never use using .. perhaps a work around is Str$(PI, 2, 6)
|
|
webu
Full Member
Posts: 149
|
Post by webu on Oct 3, 2023 22:40:23 GMT 1
In germany use #,#### with a comma and not with a dot. All will work fine.
|
|
|
Post by dragonjim on Oct 3, 2023 22:50:18 GMT 1
In germany use #,#### with a comma and not with a dot. All will work fine. Thank you. It looks like Mode(Using) is not set to the user locale on loading but to Germany by default. Everything works for me in the UK when I reset Mode Using ",.".
|
|
|
Post by dragonjim on Oct 4, 2023 8:43:46 GMT 1
One more quick question: does anyone still have a copy of GFA16 for Windows? I have one for the Atari but there are some differences.
For anyone who does, can you let me know if Print Using works as per the documentation (i.e. the full stop or period "." is used as the decimal point placeholder in the format string) rather than the locale character - in this case the ",", please?
Thanks in advance.
|
|
|
Post by larrybtoys on Oct 4, 2023 10:01:27 GMT 1
I should have it stored on my server. I kept every version I ever owned from the first 2.0 for the Atari to current.
|
|
|
Post by dragonjim on Oct 4, 2023 13:05:50 GMT 1
Thanks. That's a useful collection you have there.
It seems from the Atari version that the documentation for that and for GB32 is incorrect, so the latter will need updating. It also seems that the GB32 implementation follows suit EXCEPT that the decimal and thousands separators are not set according to the user's native region on program initialisation like those for Format and Language are.
I think as I have continuity between the different versions that I will assume GFA16 for Windows behaved the same and adjust the GB32 Help File to match.
At the end of the day, the function is very outdated - it is really only useful for fixed width fonts - and has been replaced by Format and sprintf which both have far better functionality.
Thanks for everyone's help and input on this topic.
|
|
|
Post by larrybtoys on Oct 4, 2023 13:49:48 GMT 1
Agreed. It is a bit outdated these days.
|
|
|
Post by ventilo25 on Oct 4, 2023 20:48:09 GMT 1
One more quick question: does anyone still have a copy of GFA16 for Windows? I have one for the Atari but there are some differences. For anyone who does, can you let me know if Print Using works as per the documentation (i.e. the full stop or period "." is used as the decimal point placeholder in the format string) rather than the locale character - in this case the ",", please? Thanks in advance. Yes i have an old copy of GFA16 for Windows (i cut the file in 5 parts, in one is too big): GFAWIN-16-1.zip (905.69 KB) part 1
|
|
|
Post by ventilo25 on Oct 4, 2023 20:48:55 GMT 1
One more quick question: does anyone still have a copy of GFA16 for Windows? I have one for the Atari but there are some differences. For anyone who does, can you let me know if Print Using works as per the documentation (i.e. the full stop or period "." is used as the decimal point placeholder in the format string) rather than the locale character - in this case the ",", please? Thanks in advance. Yes i have an old copy of GFA16 for Windows (i cut the file in 5 parts, in one is too big): View Attachmentpart 1 part 2 GFAWIN-16-2.zip (384.35 KB)
|
|
|
Post by ventilo25 on Oct 4, 2023 20:49:36 GMT 1
|
|
|
Post by ventilo25 on Oct 4, 2023 20:50:12 GMT 1
|
|
|
Post by ventilo25 on Oct 4, 2023 20:51:58 GMT 1
|
|
|
Post by dragonjim on Oct 5, 2023 16:14:27 GMT 1
Thank you for that. 👍
|
|