[IronPython] Singles from outer-space
Jonathan Jacobs
korpse-ironpython at kaydash.za.net
Sun May 28 19:27:41 CEST 2006
Some odd behaviour with System.Single:
>>> s = System.Single.Parse('5.2')
>>> type(s)
<type 'Single'>
>>> int(s)
Traceback (most recent call last):
File , line 0, in <stdin>##50
TypeError: expected int, found Single
>>> int(float(s))
5
--
Jonathan
When you meet a master swordsman,
show him your sword.
When you meet a man who is not a poet,
do not show him your poem.
-- Rinzai, ninth century Zen master
More information about the Ironpython-users
mailing list