percentage

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2020 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Int

type Int int32

Int is an integer-based percentage-quantity unit.

func (Int) Measure

func (p Int) Measure() (quantity float64, reference string)

Measure implements unit.Unit

func (Int) String

func (p Int) String() string

type Percentage

type Percentage float64

Percentage is a percentage-quantity unit.

func New

func New(quantity int16) Percentage

New returns the given quantity as a unit.

func (Percentage) Measure

func (p Percentage) Measure() (quantity float64, reference string)

Measure implements unit.Unit

func (Percentage) String

func (p Percentage) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL