On Sun, Feb 14, 2010 at 9:10 AM, Thibaut Barrère [email protected] wrote:
The question I have is: how to convert or cast a double to float from Duby
?
By the way, my current work-around is to simply assign a float param to the
field first, to force Duby to believe it’s a float:
The current cast syntax should work:
float(my_double)
It may change though, since there’s some difficulties distinguishing
method calls from type cases (e.g. if you have a type named “foo” and
a method name “foo”…which do we pick?).
And FYI, Duby mailing list has not moved…since it turned out Kenai
may not go away completely, I haven’t moved the project artifacts yet.
It may change though, since there’s some difficulties distinguishing
method calls from type cases (e.g. if you have a type named “foo” and
a method name “foo”…which do we pick?).
Sure - that will do the trick in the mean time.
And FYI, Duby mailing list has not moved…since it turned out Kenai
may not go away completely, I haven’t moved the project artifacts yet.
Thanks for the clarification.
– Thibaut
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.