Mercurial > repos > tabletprog
annotate samples/numparse.tp @ 373:a694ffa8d461
Filter out compiled programs from the samples and modules directories
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 12 Aug 2015 19:16:59 -0700 |
parents | 74cab9b5f2a4 |
children |
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 } |