Worth exploring! It's often expected that methods like these work with any
Numeric. The float case comes up when you do duration math, like "10% of N
years" or "average age of X."

On Sat, Apr 9, 2016 at 21:56 Brian Christian <[email protected]> wrote:

> Hi All,
>
> There are some scientific data sets that use floating-point numbers for
> years, and I’ve been thinking about adding this to Rails.
>
> For instance, the ice core CO2 measurements here
> <http://www1.ncdc.noaa.gov/pub/data/paleo/icecore/antarctica/antarctica2015co2composite.txt>
>  uses
> the standard “Years Before Present” unit, which is floating point by
> default.
>
> At present there is no way (to my knowledge) to ingest these values
> cleanly into Rails.
>
> If there is interest in merging something to adapt the .years method for
> use with Floats so that scientific data sets like these can be more
> easily handled in Rails, I can prepare a PR.
>
>
> Brian
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/rubyonrails-core.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to