The Unicon Book has the following

A.1.1 Integer

Integers are of arbitrary precision. Decimal integer literals are
contiguous sequences of the digits 0 through 9, optionally preceded by a
+ or - sign. Suffixes K,M,G,T, or P multiply a literal by 1024, 1024^2,
1024^3, 1024^4, and 1035^5, respectively.

When using this format in the compiler

unicon -features
UNIX
POSIX
DBM
ASCII
co-expressions
dynamic loading
environment variables
event monitoring
external functions
keyboard functions
large integers
multiple programs
pipes
pseudo terminals
system function
messaging
graphics
3D graphics
X Windows
libz file compression
JPEG images
PNG images
SQL via ODBC
CCompiler gcc 4.7.2
Revision 3537
Arch x86_32
Binaries at /home/bruce/unicon/bin/


The following error is obtained from the code

write("some numbers:", 0, " ", 2r101010, " ", 2R101010, " ", 1K)

test.icn:438: # "K" missing operator or "do" keyword


regards

Bruce Rennie


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Unicon-group mailing list
Unicon-group@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to