module FP

Defined in:

fixedpoint.cr
impl.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.fp(val : Int32) : FixedPoint32 #

Shortcut to create a fixed point using the size of given argument to determine size of fixed point


[View source]
def self.fp(val : Int64) : FixedPoint64 #

[View source]
def self.fp(val : Float32) : FixedPoint32 #

[View source]
def self.fp(val : Float64) : FixedPoint64 #

[View source]
def self.fp32(val : Number) : FixedPoint32 #

Size specific shortcut constructors


[View source]
def self.fp64(val : Number) : FixedPoint64 #

[View source]

Instance Method Detail

def fp(val) #

[View source]
def fp32(val) #

[View source]
def fp64(val) #

[View source]