Remote Processing CAMBASIC User Manual

Page 132

Advertising
background image

Comm ands - 99

Leading zeros to the left of the first digit to the left of the decimal point are suppressed.

A=25.5555
PRINT #10,USING "##.##";A;
25.56

Note that true rounding to the second decimal place took place. Output is to the LCD character or
graphics display as defined in CONFIG DISPLAY.

PRINT #2,USING "###.####";TICK(0);
23.7850

Prints to COM2 port current tick time.

ERROR:

< Illegal argument> – if the field specifier, “#”, is longer than 8 characters
< Data out of range> – if n is not a legal serial port number

NOTE: Illegal combinations of field declaration characters may cause err atic printing.

Advertising