Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Class of numeric literals
KM
4/11/2007 3:46:00 PM
A literal number with a decimal point in it becomes a Float, e.g.
irb(main):002:0> 3.0.class
=> Float
Is there a way to make a literal like '3.0' become something else,
e.g. a BigDecimal, automatically?
--
KM
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Class of numeric literals
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password