class NearApi::Yocto
Public Class Methods
from_near(amount)
click to toggle source
# File lib/near_api/yocto.rb, line 4 def self.from_near(amount) amount * 10**24 end
to_near(amount)
click to toggle source
# File lib/near_api/yocto.rb, line 8 def self.to_near(amount) amount.to_f / 10**24 end