Documentation ¶
Index ¶
- type Fixed
- func (f *Fixed) Add(b Fixed) Fixed
- func (f *Fixed) Compare(b Fixed) int
- func (f *Fixed) Div(b Fixed) Fixed
- func (f *Fixed) Fix(decimals int) error
- func (f *Fixed) Mul(b Fixed) Fixed
- func (f *Fixed) Round(decimals int) error
- func (f *Fixed) Sub(b Fixed) Fixed
- func (f *Fixed) ToDollars() string
- func (f *Fixed) ToString(decimals int, sep byte, width int) string
- func (f *Fixed) ToWords() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fixed ¶
type Fixed struct {
// contains filtered or unexported fields
}
Fixed is a four decimal place fixed data type
func FromString ¶
FromString creates a Fixed from a string
Click to show internal directories.
Click to hide internal directories.