Code archives/Miscellaneous/Type shortcuts

This code has been declared by its author to be Public Domain code.

Download source code

Type shortcuts by Pineapple2012
Because not all of them are documented, and I find them useful.
@ - Byte
x@ is the same as x:Byte

@@ - Short
x@@ is the same as x:Short

% - Int
x% is the same as x:Int

%% - Long
x%% is the same as x:Long

# - Float
x# is the same as x:Float

! - Double
x! is the same as x:Double

$ - String
x$ is the same as x:String

Comments

dw8172016
Very nice ! I've been needing to see this.


Floyd2016
x## is also Double.

And a reminder, numeric literals also have a type. It is assumed to be Int for integer values ( no decimal point ) and Float for floating point.

Print 123456123456
Print 123456123456%%
Print
Print 0.3
Print 0.3!



Code Archives Forum