Sebastian Calvo

Results 3 comments of Sebastian Calvo

My solution for this is: Define functions in functional.rb ``` def self.from_apid(x) denominator = 131.5 + x return 0 if denominator == 0 141.5 / denominator * 10**6 * 0.999016...

I'm on rails so I've added an initializer as: ``` ruby require 'unitwise' api = { :names => "API gravity", :symbol => "°API", :primary_code => "Api", :secondary_code => "API", :scale...

@joshwlewis a better API to functional would be fine. This API unit is really very common but I don't believe it would be acepted by UCUM, it has some quirks...