annotate samples/numparse.tp @ 347:ff7ea11b4b60

Add length method to executable bytearrays
author Michael Pavone <pavone@retrodev.com>
date Fri, 10 Apr 2015 00:48:12 -0700
parents 74cab9b5f2a4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
339
74cab9b5f2a4 Added parseFloat64 and parseFloat32 along with a sample that exercises number parsing from a string
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
1 #{
74cab9b5f2a4 Added parseFloat64 and parseFloat32 along with a sample that exercises number parsing from a string
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
2 main <- {
74cab9b5f2a4 Added parseFloat64 and parseFloat32 along with a sample that exercises number parsing from a string
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
3 print: "42: " . ("42" int32) . ", -42: " . ("-42" int32) . "\n"
74cab9b5f2a4 Added parseFloat64 and parseFloat32 along with a sample that exercises number parsing from a string
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
4 print: "2147483647: " . ("2147483647" int32) . ", -2147483648: " . ("-2147483648" int32) . "\n"
74cab9b5f2a4 Added parseFloat64 and parseFloat32 along with a sample that exercises number parsing from a string
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
5 print: "1.23456789: " . ("1.23456789" parseFloat64) . "\n"
74cab9b5f2a4 Added parseFloat64 and parseFloat32 along with a sample that exercises number parsing from a string
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
6 }
74cab9b5f2a4 Added parseFloat64 and parseFloat32 along with a sample that exercises number parsing from a string
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
7 }