Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

@ORD in ISO8601

Aug
1,917
68
Hi,
I am running;
Code:
TCC  20.11.36 x64   Windows 7 [Version 6.1.7601]
TCC Build 36   Windows 7 Build 7601  Service Pack 1

and
Code:
Module:      C:\Users\jlc\utils\ISO8601-x64.dll
Name:        ISO8601
Author:      Charles Dye
Version:     1.6  Build 0

When I
Code:
for /l %n in (1,1,5) echo %@ord[%n]
I get this
Code:
ISO8601 plugin: Invalid number "1.00"
ISO8601 plugin: Invalid number "2.00"
ISO8601 plugin: Invalid number "3.00"
ISO8601 plugin: Invalid number "4.00"
ISO8601 plugin: Invalid number "5.00"

Not sure what I was doing wrong, until I remembered doing
Code:
setdos /F2.2

Doing
Code:
setdos /F0.10

returns the correct results
Code:
for /l %n in (1,1,5) echo %@ord[%n]
1st
2nd
3rd
4th
5th

Not a bug, but just a note in the event someone else has this problem. You can find out the current SETDOS Format (EVAL) by typing SETDOS at the prompt.

Joe
 
I think you'll get similar results passing a floating-point number anywhere I'm expecting an integer.
 
Back
Top