view samples/int64.tp @ 135:f98790d8a53d

Add int64, int16 and int8. Also add hex method to integer types.
author Mike Pavone <pavone@retrodev.com>
date Thu, 08 Aug 2013 20:03:15 -0700
parents
children
line wrap: on
line source
#{
	main <- {
		a <- 2147483647
		b <- 2147483647i64
		print: "a + a = " . (string: a + a) . "\n"
		print: "b + b = " . (string: b + b) . "\n"
		print: "hex: a + a = " . (hex: a + a) . "\n"
		print: "hex: b + b = " . (hex: b + b) . "\n"
	}
}