Files
harbour-core/tests/nums.prg
vszakats a4a357a18b 2013-03-15 11:12 UTC+0100 Viktor Szakats (harbour syenar.net)
* /harbour/* -> /*
    * moved whole Harbour source tree one level up to
      avoid single 'harbour' top dir
2013-03-15 11:13:30 +01:00

24 lines
518 B
Plaintext

/*
* $Id$
*/
// 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