Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Places is the number of fixed places Places = 16 // FixedOne is the number 1 FixedOne = 1 << Places // FixedHalf is the number .5 FixedHalf = 1 << (Places - 1) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fixed ¶
type Fixed int32
Fixed is a fixed point number
func FixedFloat32 ¶
FixedFromFloat32 creates a fixed point number from a float32
func FixedFloat64 ¶
FixedFromFloat64 creates a fixed point number from a float64
Click to show internal directories.
Click to hide internal directories.