Convert calc_num module to F#.

Signed-off-by: Eric G Taucher <researcher0x00@gmail.com>