Test - MS uses the right thousand separator with your Windows version?

Started by frktons, November 19, 2010, 09:59:48 PM

Previous topic - Next topic

frktons

Hi international guys scatterd all over the world. I need your help/test to see if the
routine implemented in the attached code recognizes the correct thousand currency
separator for your country.

Can you try the attached code, press "C" when the program finish to display the results, and
paste the content of the clipboard into the forum, saying if the separator used is correct or
a weird interpretation of MS guys. ?

My display correctly shows the european point separator:


┌─────────────────────────────────────────────────────────────[19-Nov-2010 at 23:00 GMT]─┐
│OS  : Microsoft Windows 7 Ultimate Edition, 64-bit (build 7600)                         │
│CPU : Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz with 2 logical core(s) with SSSE3           │
├──────────────────────────────────┬─────────┬──────────┬──────────┬──────────┬──────────┤
│        Algorithm notes           │Proc Size│ Test # 1 │ Test # 2 │ Test # 3 │ Test # 4 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│01 ustrv$ + GetNumberFormat       │    95   │   43.849 │   43.638 │   43.649 │   43.606 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│02 udw2str + GetNumberFormat      │    65   │   43.916 │   43.971 │   43.997 │   43.855 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│03 wsprintf + GetNumberFormat     │    73   │   50.321 │   50.322 │   50.337 │   50.327 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│04 Clive - IDIV and Stack         │   120   │    3.036 │    3.027 │    3.025 │    2.984 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│05 Clive - reciprocal IMUL        │   157   │    1.987 │    1.955 │    1.979 │    2.007 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│06 Hutch ustr$ + format algo      │   159   │    5.785 │    5.821 │    5.769 │    5.761 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤


Thanks for your collaboration.

Frank
Mind is like a parachute. You know what to do in order to use it :-)

dedndave

for this one, right-clicked on the title bar, select all, paste - i added the code tags myself
┌─────────────────────────────────────────────────────────────[19-Nov-2010 at 23:07 GMT]─┐
│OS  : Microsoft Windows XP Professional Service Pack 2 (build 2600)                     │
│CPU : Intel(R) Pentium(R) 4 CPU 3.00GHz with 2 logical core(s) with SSE3                │
├──────────────────────────────────┬─────────┬──────────┬──────────┬──────────┬──────────┤
│        Algorithm notes           │Proc Size│ Test # 1 │ Test # 2 │ Test # 3 │ Test # 4 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│01 ustrv$ + GetNumberFormat       │    95   │   81,401 │   75,847 │   77,437 │   92,724 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│02 udw2str + GetNumberFormat      │    65   │   77,321 │   70,889 │   81,228 │   73,061 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│03 wsprintf + GetNumberFormat     │    73   │   95,062 │   90,170 │   89,370 │   96,677 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│04 Clive - IDIV and Stack         │   120   │    8,514 │    8,629 │    8,314 │    9,006 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│05 Clive - reciprocal IMUL        │   157   │    3,538 │    3,408 │    3,496 │    3,376 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│06 Hutch ustr$ + format algo      │   159   │   12,018 │   13,045 │   12,017 │   12,067 │


this is what i got with the C key - it had the opening code tag, but no closing tag

┌─────────────────────────────────────────────────────────────[19-Nov-2010 at 23:07 GMT]─┐
│OS  : Microsoft Windows XP Professional Service Pack 2 (build 2600)                     │
│CPU : Intel(R) Pentium(R) 4 CPU 3.00GHz with 2 logical core(s) with SSE3                │
├──────────────────────────────────┬─────────┬──────────┬──────────┬──────────┬──────────┤
│        Algorithm notes           │Proc Size│ Test # 1 │ Test # 2 │ Test # 3 │ Test # 4 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│01 ustrv$ + GetNumberFormat     


i don't see what the program came up with for the seperators
but, i have written a pInit routine that returns ',' and '.' as the monitary seperator and decimal point for my location
i was modifying an old formatted dw to ascii routine i had before to use the pInit result
if i get time to play with it, i may post it for you to test

Twister

┌─────────────────────────────────────────────────────────────[19-Nov-2010 at 23:18 GMT]─┐
│OS  : Microsoft Windows 7 Ultimate Edition, 32-bit (build 7600)                         │
│CPU : Intel(R) Pentium(R) 4 CPU 3.20GHz with 2 logical core(s) with SSE3                │
├──────────────────────────────────┬─────────┬──────────┬──────────┬──────────┬──────────┤
│        Algorithm notes           │Proc Size│ Test # 1 │ Test # 2 │ Test # 3 │ Test # 4 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│01 ustrv$ + GetNumberFormat       │    95   │   92,661 │   87,212 │   88,111 │   86,948 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│02 udw2str + GetNumberFormat      │    65   │   88,374 │   88,581 │   88,194 │   87,839 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│03 wsprintf + GetNumberFormat     │    73   │  108,287 │  114,361 │  108,614 │  108,133 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│04 Clive - IDIV and Stack         │   120   │    9,542 │    8,590 │    8,567 │    8,541 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│05 Clive - reciprocal IMUL        │   157   │    3,331 │    3,451 │    3,407 │    3,350 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│06 Hutch ustr$ + format algo      │   159   │   12,159 │   12,221 │   12,341 │   15,410 │

frktons

Quote from: dedndave on November 19, 2010, 11:10:27 PM

this is what i got with the C key - it had the opening code tag, but no closing tag

┌─────────────────────────────────────────────────────────────[19-Nov-2010 at 23:07 GMT]─┐
│OS  : Microsoft Windows XP Professional Service Pack 2 (build 2600)                     │
│CPU : Intel(R) Pentium(R) 4 CPU 3.00GHz with 2 logical core(s) with SSE3                │
├──────────────────────────────────┬─────────┬──────────┬──────────┬──────────┬──────────┤
│        Algorithm notes           │Proc Size│ Test # 1 │ Test # 2 │ Test # 3 │ Test # 4 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│01 ustrv$ + GetNumberFormat     


i don't see what the program came up with for the seperators
but, i have written a pInit routine that returns ',' and '.' as the monitary seperator and decimal point for my location
i was modifying an old formatted dw to ascii routine i had before to use the pInit result
if i get time to play with it, i may post it for you to test

Thanks Dave. This was not expected, no one has noticed that, and many are using win xp, or even win 2000
and this doesn't happen on their computers.

Are you sure it doesn't depend on something related to your OS configuration?

By the way I hope you used the last version, in the first post of this thread.
Mind is like a parachute. You know what to do in order to use it :-)

dedndave

verified
opened a new window by clicking on the program and got the same result
if no one else reports the same, just ignore me   :lol

frktons

Quote from: dedndave on November 19, 2010, 11:28:14 PM
verified
opened a new window by clicking on the program and got the same result
if no one else reports the same, just ignore me   :lol

If nobody else will notice that, I promise I'll ignore you.  :P

Better if you don't ignore your computer, by the way.  :lol
Mind is like a parachute. You know what to do in order to use it :-)

dedndave


frktons

Mind is like a parachute. You know what to do in order to use it :-)

Antariy


┌─────────────────────────────────────────────────────────────[19-Nov-2010 at 23:49 GMT]─┐
│OS  : Microsoft Windows XP Professional Service Pack 2 (build 2600)                     │
│CPU : Intel(R) Celeron(R) CPU 2.13GHz with 1 logical core(s) with SSE3                  │
├──────────────────────────────────┬─────────┬──────────┬──────────┬──────────┬──────────┤
│        Algorithm notes           │Proc Size│ Test # 1 │ Test # 2 │ Test # 3 │ Test # 4 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│01 ustrv$ + GetNumberFormat       │    95   │   72 943 │   73 513 │   74 140 │   73 069 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│02 udw2str + GetNumberFormat      │    65   │   71 664 │   71 514 │   71 627 │   71 522 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│03 wsprintf + GetNumberFormat     │    73   │   90 555 │   90 177 │   90 078 │   90 645 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│04 Clive - IDIV and Stack         │   120   │    8 640 │    8 929 │    8 883 │    8 823 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│05 Clive - reciprocal IMUL        │   157   │    3 698 │    3 705 │    3 703 │    3 690 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│06 Hutch ustr$ + format algo      │   159   │   12 494 │   12 307 │   12 390 │   12 542 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤


Well, I see that results is copied into clipboard. One bug which I see at the program - why it is not make me a coffee??? :bg

frktons

Alex, is there any reason you prefer service pack 2 for win XP?
Mind is like a parachute. You know what to do in order to use it :-)

Antariy


frktons

Quote from: Antariy on November 20, 2010, 12:00:22 AM
Quote from: frktons on November 19, 2010, 11:58:39 PM
Alex, is there any reason you prefer service pack 2 for win XP?

Yes, it is.  :wink


Well, now I feel better  :lol :lol :lol :lol :lol :lol :lol
Mind is like a parachute. You know what to do in order to use it :-)

GregL


┌─────────────────────────────────────────────────────────────[20-Nov-2010 at 03:43 GMT]─┐
│OS  : Microsoft Windows Vista Home Premium Edition, 32-bit Service Pack 2 (build 6002)  │
│CPU : Intel(R) Core(TM)2 Duo CPU T5750 @ 2.00GHz with 2 logical core(s) with SSSE3      │
├──────────────────────────────────┬─────────┬──────────┬──────────┬──────────┬──────────┤
│        Algorithm notes           │Proc Size│ Test # 1 │ Test # 2 │ Test # 3 │ Test # 4 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│01 ustrv$ + GetNumberFormat       │    95   │   60,045 │   52,930 │   52,773 │   53,177 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│02 udw2str + GetNumberFormat      │    65   │   52,428 │   53,053 │   52,954 │   53,048 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│03 wsprintf + GetNumberFormat     │    73   │   59,819 │   59,957 │   59,763 │   59,950 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│04 Clive - IDIV and Stack         │   120   │    3,020 │    2,986 │    2,993 │    3,034 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│05 Clive - reciprocal IMUL        │   157   │    2,005 │    1,989 │    1,975 │    1,956 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│06 Hutch ustr$ + format algo      │   159   │    5,777 │    5,748 │    5,735 │    5,696 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤


Works correctly, including the Copy.    U.S.A.

oex

Hi Frank,

I compiled and loaded the application however found the following issues....

1) I cant see all the screen, it loads at a weird size and I have to manually resize it
2) Might I suggest you add the testbed version to the results screen so when someone reports an issue you know it really is an issue :bg
3) It doesnt seem to copy properly I press C it said results copied to the clipboard and then just pasted the result below:

([)code(])
┌─────────────────────────────────────────────────────────────[20-Nov-2010 at 0

It does run the tests ok and there is nothing else I see wrong atm :bg....


┌─────────────────────────────────────────────────────────────[20-Nov-2010 at 04
:01 GMTMicrosoft Windows XP Professional Service Pack 3 (build 2600)
│CPU : AMD Sempron(tm) Processor 3100+ with 1 logical core(s) with SSE3
├──────────────────────────────────┬─────────┬──────────┬──────────┬──────────┬─
│        Algorithm notes           │Proc Size│ Test # 1 │ Test # 2 │ Test # 3 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼─
│01 ustrv$ + GetNumberFormat       │    95   │   44,336 │   45,305 │   45,010 │   44,857
997────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼─
│02 udw2str + GetNumberFormat      │    65   │   44,047 │   43,569 │   43,610 │   44,634
582────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼─
│03 wsprintf + GetNumberFormat     │    73   │   53,949 │   54,316 │   54,271 │   54,139
072────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼─
│04 Clive - IDIV and Stack         │   120   │    6,028 │    6,065 │    6,031 │    6,004
52─────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼─
│05 Clive - reciprocal IMUL        │   157   │    2,055 │    2,094 │    2,081 │    2,131
44─────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼─
│06 Hutch ustr$ + format algo      │   159   │    7,772 │    7,780 │    7,798 │    7,768
17─────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼─
│07                                │         │          │          │          │


(These results are manually copied and pasted.... You can see where the screen only partially displayed to the right (and with the word wrapping at the top))
We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv

frktons

Quote from: oex on November 20, 2010, 04:02:27 AM
Hi Frank,

I compiled and loaded the application however found the following issues....

1) I cant see all the screen, it loads at a weird size and I have to manually resize it
2) Might I suggest you add the testbed version to the results screen so when someone reports an issue you know it really is an issue :bg
3) It doesnt seem to copy properly I press C it said results copied to the clipboard and then just pasted the result below:

(These results are manually copied and pasted.... You can see where the screen only partially displayed to the right (and with the word wrapping at the top))

In order to use the testbed you should:

1] set the console propreties to 40 rows and 90 columns. Use font Lucida Console/b].
2] save the setting, so next time you run it, it is already set.
3] try again, and let me know.

By the way what resolution is your screen set? 1024x768 should be enough, just try.
:bg

using this resolution I can see all the screen and I get this with "C":


┌─────────────────────────────────────────────────────────────[20-Nov-2010 at 09:59 GMT]─┐
│OS  : Microsoft Windows 7 Ultimate Edition, 64-bit (build 7600)                         │
│CPU : Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz with 2 logical core(s) with SSSE3           │
├──────────────────────────────────┬─────────┬──────────┬──────────┬──────────┬──────────┤
│        Algorithm notes           │Proc Size│ Test # 1 │ Test # 2 │ Test # 3 │ Test # 4 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│01 ustrv$ + GetNumberFormat       │    95   │   44.143 │   43.863 │   43.902 │   44.195 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│02 udw2str + GetNumberFormat      │    65   │   43.942 │   43.682 │   43.811 │   43.910 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│03 wsprintf + GetNumberFormat     │    73   │   50.565 │   50.522 │   50.562 │   50.550 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│04 Clive - IDIV and Stack         │   120   │    3.002 │    2.990 │    2.963 │    2.962 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│05 Clive - reciprocal IMUL        │   157   │    1.966 │    2.028 │    2.006 │    1.987 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤
│06 Hutch ustr$ + format algo      │   159   │    5.772 │    5.699 │    5.730 │    5.762 │
├──────────────────────────────────┼─────────┼──────────┼──────────┼──────────┼──────────┤

Mind is like a parachute. You know what to do in order to use it :-)