Re: Should %d round?
- Posted by SDPringle Mar 19, 2012
- 1962 views
What is Kenneth suggesting? Is it that we should have optional user-defined string cast operators?
-- allow double sized values but not the kinds with the fraction part... type hex(atom i) return floor(i) = i end type name_of hex(integer i) return sprintf("%x",i) end name_of hex x = 10 ? name_of(x) -- prints 'A', the hexadecimal form for ten.