Documentation ¶
Index ¶
- type Scale
- func (s Scale) FormatScale(r radix.Radix) (string, error)
- func (s Scale) FormatScaleFloat(r radix.Radix, bitSize int) (string, error)
- func (s Scale) FormatScaleInt(r radix.Radix, base int, bitSize int) (string, error)
- func (s Scale) FormatScaleUint(r radix.Radix, base int, bitSize int) (string, error)
- func (s Scale) ParseFloat(bitSize int) (num float64, err error)
- func (s Scale) ParseInt(base int, bitSize int) (num int64, err error)
- func (s Scale) ParseNum() (num interface{}, err error)
- func (s Scale) ParseNumStr() (num string)
- func (s Scale) ParseScale(r radix.Radix) (scale int64, err error)
- func (s Scale) ParseSign() (neg bool)
- func (s Scale) ParseUint(base int, bitSize int) (num uint64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scale ¶
type Scale struct {
// contains filtered or unexported fields
}
Scale num's coefficient in string
func NewFromNum ¶
func (Scale) FormatScale ¶
format and get string like -123k
func (Scale) FormatScaleFloat ¶
func (Scale) FormatScaleInt ¶
func (Scale) FormatScaleUint ¶
func (Scale) ParseNumStr ¶
func (Scale) ParseScale ¶
parse -123k and get num's coeffieient
Click to show internal directories.
Click to hide internal directories.