##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: October 2016 # Modified: 2016-10-09/21:47-0400 ##+ # # numeric.icn, produce an integer or real from type conversion # procedure main() i := 123 r := 123.123 s := 123.0 b := "36rXYZ" e := "abc" write(numeric(i) * 2) write(numeric(r) * 2) write(numeric(s) * 2) write(numeric(b) * 2) # no write occurs as e is not numeric, conversion fails write(numeric(e) * 2) end