The stuff in quotes is a format specification.

It's equivalent to using the Fmt function, for example Fmt(10.,'2') or Fmt(10.,'02').
'2' is the same as '2 decimal places', '02' is the same as '0 decimal places with a 
scaling factor of 2'.

Originally from Pick, this shorthand is recognized in all flavours in BASIC.

----- Original Message -----
From: Barry Brevik <[EMAIL PROTECTED]>
To: "U2-users (E-mail)" <[EMAIL PROTECTED]>
Subject: [U2] [UV] Typo leads to discovery of new feature
Date: Tue, 12 Oct 2004 16:06:57 -0700

> 
> I was writing some test code when a slip of the fingers resulted in some weird 
> syntax, which then proceded to compile, and produced some interesting output.
> 
> Anybody have any idea what this code thinks it is doing?
> 
> PRINT 10.2
> PRINT 10.'2'
> PRINT 10.'02'
> 
> program output:
> 10.2
> 10.00
> 1000
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to