Files
harbour-core/tests/nums.prg
vszakats 9687850865 2013-03-16 02:10 UTC+0100 Viktor Szakats (harbour syenar.net)
* (all files)
    * stripped svn header
    * minor cleanups
    ; use following command to find out the history of files:
       git log
       git log --follow
       git blame
       git annotate
2013-03-16 02:11:42 +01:00

20 lines
502 B
Plaintext

// Testing the different numeric formats Harbour produces
PROCEDURE Main()
LOCAL a := 0 // it should generate a _ZERO pcode opcode
LOCAL b := 123 // it should generate a _PUSHINT pcode opcodes
LOCAL c := 50000 // it should generate a _PUSHLONG pcode opcodes
LOCAL d := 12000.123 // it should generate a _PUSHDOUBLE pcode opcodes
LOCAL e := 0xABAB // Automatic support for hexadecimal numbers
LOCAL f := .12
? a
? b
? c
? d
? e
? f
RETURN