Documentation ¶
Index ¶
- Constants
- type Acceleration
- type AmountOfSubstance
- type Angle
- func (a Angle) Arcminutes() float64
- func (a Angle) Arcseconds() float64
- func (a Angle) Attoradians() float64
- func (a Angle) Centiradians() float64
- func (a Angle) Deciradians() float64
- func (a Angle) Degrees() float64
- func (a Angle) Femtoradians() float64
- func (a Angle) Microarcseconds() float64
- func (a Angle) Microradians() float64
- func (a Angle) Milliarcseconds() float64
- func (a Angle) Milliradians() float64
- func (a Angle) Nanoradians() float64
- func (a Angle) Picoradians() float64
- func (a Angle) Radians() float64
- func (a Angle) Yoctoradians() float64
- func (a Angle) Zeptoradians() float64
- type Area
- func (a Area) Acres() float64
- func (a Area) Ares() float64
- func (a Area) Centiares() float64
- func (a Area) Hectares() float64
- func (a Area) Roods() float64
- func (a Area) SquareAttometers() float64
- func (a Area) SquareCentimeters() float64
- func (a Area) SquareDecameter() float64
- func (a Area) SquareDecimeters() float64
- func (a Area) SquareExameters() float64
- func (a Area) SquareFeet() float64
- func (a Area) SquareFemtometers() float64
- func (a Area) SquareGigameters() float64
- func (a Area) SquareHectometer() float64
- func (a Area) SquareInches() float64
- func (a Area) SquareKilometers() float64
- func (a Area) SquareMegameters() float64
- func (a Area) SquareMeters() float64
- func (a Area) SquareMicrometers() float64
- func (a Area) SquareMiles() float64
- func (a Area) SquareMillimeters() float64
- func (a Area) SquareNanometers() float64
- func (a Area) SquarePetameters() float64
- func (a Area) SquarePicometers() float64
- func (a Area) SquareRods() float64
- func (a Area) SquareTerameters() float64
- func (a Area) SquareYards() float64
- func (a Area) SquareYoctometers() float64
- func (a Area) SquareYottameters() float64
- func (a Area) SquareZeptometers() float64
- func (a Area) SquareZettameters() float64
- type Datarate
- func (b Datarate) BitsPerSecond() float64
- func (b Datarate) BytesPerSecond() float64
- func (b Datarate) ExabitsPerSecond() float64
- func (b Datarate) ExabytesPerSecond() float64
- func (b Datarate) ExbibitsPerSecond() float64
- func (b Datarate) ExbibytesPerSecond() float64
- func (b Datarate) GibibitsPerSecond() float64
- func (b Datarate) GibibytesPerSecond() float64
- func (b Datarate) GigabitsPerSecond() float64
- func (b Datarate) GigabytesPerSecond() float64
- func (b Datarate) KibibitsPerSecond() float64
- func (b Datarate) KibibytesPerSecond() float64
- func (b Datarate) KilobitsPerSecond() float64
- func (b Datarate) KilobytesPerSecond() float64
- func (b Datarate) MebibitsPerSecond() float64
- func (b Datarate) MebibytesPerSecond() float64
- func (b Datarate) MegabitsPerSecond() float64
- func (b Datarate) MegabytesPerSecond() float64
- func (b Datarate) PebibitsPerSecond() float64
- func (b Datarate) PebibytesPerSecond() float64
- func (b Datarate) PetabitsPerSecond() float64
- func (b Datarate) PetabytesPerSecond() float64
- func (b Datarate) TebibitsPerSecond() float64
- func (b Datarate) TebibytesPerSecond() float64
- func (b Datarate) TerabitsPerSecond() float64
- func (b Datarate) TerabytesPerSecond() float64
- func (b Datarate) YobibitsPerSecond() float64
- func (b Datarate) YobibytesPerSecond() float64
- func (b Datarate) YottabitsPerSecond() float64
- func (b Datarate) YottabytesPerSecond() float64
- func (b Datarate) ZebibitsPerSecond() float64
- func (b Datarate) ZebibytesPerSecond() float64
- func (b Datarate) ZettabitsPerSecond() float64
- func (b Datarate) ZettabytesPerSecond() float64
- type Datasize
- func (b Datasize) Bits() float64
- func (b Datasize) Bytes() float64
- func (b Datasize) Exabits() float64
- func (b Datasize) Exabytes() float64
- func (b Datasize) Exbibits() float64
- func (b Datasize) Exbibytes() float64
- func (b Datasize) Gibibits() float64
- func (b Datasize) Gibibytes() float64
- func (b Datasize) Gigabits() float64
- func (b Datasize) Gigabytes() float64
- func (b Datasize) Kibibits() float64
- func (b Datasize) Kibibytes() float64
- func (b Datasize) Kilobits() float64
- func (b Datasize) Kilobytes() float64
- func (b Datasize) Mebibits() float64
- func (b Datasize) Mebibytes() float64
- func (b Datasize) Megabits() float64
- func (b Datasize) Megabytes() float64
- func (b Datasize) Pebibits() float64
- func (b Datasize) Pebibytes() float64
- func (b Datasize) Petabits() float64
- func (b Datasize) Petabytes() float64
- func (b Datasize) Quettabits() float64
- func (b Datasize) Quettabytes() float64
- func (b Datasize) Ronnabits() float64
- func (b Datasize) Ronnabytes() float64
- func (b Datasize) Tebibits() float64
- func (b Datasize) Tebibytes() float64
- func (b Datasize) Terabits() float64
- func (b Datasize) Terabytes() float64
- func (b Datasize) Yobibits() float64
- func (b Datasize) Yobibytes() float64
- func (b Datasize) Yottabits() float64
- func (b Datasize) Yottabytes() float64
- func (b Datasize) Zebibits() float64
- func (b Datasize) Zebibytes() float64
- func (b Datasize) Zettabits() float64
- func (b Datasize) Zettabytes() float64
- type Duration
- func (t Duration) Attoseconds() float64
- func (t Duration) Centiseconds() float64
- func (t Duration) Days() float64
- func (t Duration) Decaseconds() float64
- func (t Duration) Deciseconds() float64
- func (t Duration) Exaseconds() float64
- func (t Duration) Femtoseconds() float64
- func (t Duration) Gigaseconds() float64
- func (t Duration) Hectoseconds() float64
- func (t Duration) Hours() float64
- func (t Duration) JulianYears() float64
- func (t Duration) Kiloseconds() float64
- func (t Duration) Megaseconds() float64
- func (t Duration) Microseconds() float64
- func (t Duration) Milliseconds() float64
- func (t Duration) Minutes() float64
- func (t Duration) Nanoseconds() float64
- func (t Duration) Petaseconds() float64
- func (t Duration) Picoseconds() float64
- func (t Duration) Seconds() float64
- func (t Duration) Teraseconds() float64
- func (t Duration) ThirtyDayMonths() float64
- func (t Duration) Weeks() float64
- func (t Duration) Yoctoseconds() float64
- func (t Duration) Yottaseconds() float64
- func (t Duration) Zeptoseconds() float64
- func (t Duration) Zettaseconds() float64
- type ElectricCurrent
- func (c ElectricCurrent) Amperes() float64
- func (c ElectricCurrent) Attoamperes() float64
- func (c ElectricCurrent) Centiamperes() float64
- func (c ElectricCurrent) Decaamperes() float64
- func (c ElectricCurrent) Deciamperes() float64
- func (c ElectricCurrent) Exaamperes() float64
- func (c ElectricCurrent) Femtoamperes() float64
- func (c ElectricCurrent) Gigaamperes() float64
- func (c ElectricCurrent) Hectoamperes() float64
- func (c ElectricCurrent) Kiloamperes() float64
- func (c ElectricCurrent) Megaamperes() float64
- func (c ElectricCurrent) Microamperes() float64
- func (c ElectricCurrent) Milliamperes() float64
- func (c ElectricCurrent) Nanoamperes() float64
- func (c ElectricCurrent) Petaamperes() float64
- func (c ElectricCurrent) Picoamperes() float64
- func (c ElectricCurrent) Teraamperes() float64
- func (c ElectricCurrent) Yoctoamperes() float64
- func (c ElectricCurrent) Yottaamperes() float64
- func (c ElectricCurrent) Zeptoamperes() float64
- func (c ElectricCurrent) Zettaamperes() float64
- type ElectricalConductance
- type ElectricalResistance
- type Energy
- func (e Energy) Attojoules() float64
- func (e Energy) AttowattHours() float64
- func (e Energy) Centijoules() float64
- func (e Energy) CentiwattHours() float64
- func (e Energy) Decajoules() float64
- func (e Energy) DecawattHours() float64
- func (e Energy) Decijoules() float64
- func (e Energy) DeciwattHours() float64
- func (e Energy) Exajoules() float64
- func (e Energy) ExawattHours() float64
- func (e Energy) Femtojoules() float64
- func (e Energy) FemtowattHours() float64
- func (e Energy) Gigajoules() float64
- func (e Energy) GigawattHours() float64
- func (e Energy) Hectojoules() float64
- func (e Energy) HectowattHours() float64
- func (e Energy) Joules() float64
- func (e Energy) Kilojoules() float64
- func (e Energy) KilowattHours() float64
- func (e Energy) Megajoules() float64
- func (e Energy) MegawattHours() float64
- func (e Energy) Microjoules() float64
- func (e Energy) MicrowattHours() float64
- func (e Energy) Millijoules() float64
- func (e Energy) MilliwattHours() float64
- func (e Energy) Nanojoules() float64
- func (e Energy) NanowattHours() float64
- func (e Energy) Petajoules() float64
- func (e Energy) PetawattHours() float64
- func (e Energy) Picojoules() float64
- func (e Energy) PicowattHours() float64
- func (e Energy) Terajoules() float64
- func (e Energy) TerawattHours() float64
- func (e Energy) WattHours() float64
- func (e Energy) Yoctojoules() float64
- func (e Energy) YoctowattHours() float64
- func (e Energy) Yottajoules() float64
- func (e Energy) YottawattHours() float64
- func (e Energy) Zeptojoules() float64
- func (e Energy) ZeptowattHours() float64
- func (e Energy) Zettajoules() float64
- func (e Energy) ZettawattHours() float64
- type Force
- type Frequency
- func (f Frequency) Attohertz() float64
- func (f Frequency) Centihertz() float64
- func (f Frequency) Decahertz() float64
- func (f Frequency) Decihertz() float64
- func (f Frequency) Exahertz() float64
- func (f Frequency) Femtohertz() float64
- func (f Frequency) Gigahertz() float64
- func (f Frequency) Hectohertz() float64
- func (f Frequency) Hertz() float64
- func (f Frequency) Kilohertz() float64
- func (f Frequency) Megahertz() float64
- func (f Frequency) Microhertz() float64
- func (f Frequency) Millihertz() float64
- func (f Frequency) Nanohertz() float64
- func (f Frequency) Petahertz() float64
- func (f Frequency) Picohertz() float64
- func (f Frequency) Terahertz() float64
- func (f Frequency) Yoctohertz() float64
- func (f Frequency) Yottahertz() float64
- func (f Frequency) Zeptohertz() float64
- func (f Frequency) Zettahertz() float64
- type Illuminance
- type Length
- func (l Length) Angstroms() float64
- func (l Length) AstronomicalUnits() float64
- func (l Length) Attometers() float64
- func (l Length) Cables() float64
- func (l Length) Centimeters() float64
- func (l Length) Chains() float64
- func (l Length) Decameters() float64
- func (l Length) Decimeters() float64
- func (l Length) Exameters() float64
- func (l Length) Fathoms() float64
- func (l Length) Feet() float64
- func (l Length) Femtometers() float64
- func (l Length) Furlongs() float64
- func (l Length) Gigameters() float64
- func (l Length) Hands() float64
- func (l Length) Hectometers() float64
- func (l Length) Inches() float64
- func (l Length) Kilometers() float64
- func (l Length) LightYears() float64
- func (l Length) Links() float64
- func (l Length) LunarDistances() float64
- func (l Length) Megameters() float64
- func (l Length) Meters() float64
- func (l Length) Micrometers() float64
- func (l Length) Miles() float64
- func (l Length) Millimeters() float64
- func (l Length) Nanometers() float64
- func (l Length) NauticalMiles() float64
- func (l Length) Petameters() float64
- func (l Length) Picometers() float64
- func (l Length) Quettameters() float64
- func (l Length) Rods() float64
- func (l Length) Ronnameters() float64
- func (l Length) ScandinavianMiles() float64
- func (l Length) Terameters() float64
- func (l Length) Yards() float64
- func (l Length) Yoctometers() float64
- func (l Length) Yottameters() float64
- func (l Length) Zeptometers() float64
- func (l Length) Zettameters() float64
- type LuminousFlux
- type LuminousIntensity
- type Mass
- func (m Mass) Attograms() float64
- func (m Mass) AvoirdupoisDrams() float64
- func (m Mass) AvoirdupoisOunces() float64
- func (m Mass) AvoirdupoisPounds() float64
- func (m Mass) Centigrams() float64
- func (m Mass) Decagrams() float64
- func (m Mass) Decigrams() float64
- func (m Mass) Exagrams() float64
- func (m Mass) Exatonnes() float64
- func (m Mass) Femtograms() float64
- func (m Mass) Gigagrams() float64
- func (m Mass) Gigatonnes() float64
- func (m Mass) Grams() float64
- func (m Mass) Hectograms() float64
- func (m Mass) Kilograms() float64
- func (m Mass) Kilotonnes() float64
- func (m Mass) LongHundredweights() float64
- func (m Mass) Megagrams() float64
- func (m Mass) Megatonnes() float64
- func (m Mass) Micrograms() float64
- func (m Mass) Milligrams() float64
- func (m Mass) Nanograms() float64
- func (m Mass) Petagrams() float64
- func (m Mass) Petatonnes() float64
- func (m Mass) Picograms() float64
- func (m Mass) Quettagrams() float64
- func (m Mass) Ronnagrams() float64
- func (m Mass) ShortHundredweights() float64
- func (m Mass) Teragrams() float64
- func (m Mass) Teratonnes() float64
- func (m Mass) Tonnes() float64
- func (m Mass) TroyGrains() float64
- func (m Mass) TroyOunces() float64
- func (m Mass) TroyPounds() float64
- func (m Mass) UkQuarters() float64
- func (m Mass) UkStones() float64
- func (m Mass) UsQuarters() float64
- func (m Mass) UsStones() float64
- func (m Mass) Yoctograms() float64
- func (m Mass) Yottagrams() float64
- func (m Mass) Zeptograms() float64
- func (m Mass) Zettagrams() float64
- type Power
- func (p Power) Attowatts() float64
- func (p Power) Centiwatts() float64
- func (p Power) Decawatts() float64
- func (p Power) Deciwatts() float64
- func (p Power) Exawatts() float64
- func (p Power) Femtowatts() float64
- func (p Power) Gigawatts() float64
- func (p Power) Hectowatts() float64
- func (p Power) Kilowatts() float64
- func (p Power) Megawatts() float64
- func (p Power) Microwatts() float64
- func (p Power) Milliwatts() float64
- func (p Power) Nanowatts() float64
- func (p Power) Petawatts() float64
- func (p Power) Pferdestarke() float64
- func (p Power) Picowatts() float64
- func (p Power) Terawatts() float64
- func (p Power) Watts() float64
- func (p Power) Yoctowatts() float64
- func (p Power) Yottawatts() float64
- func (p Power) Zeptowatts() float64
- func (p Power) Zettawatts() float64
- type Pressure
- func (p Pressure) Atmospheres() float64
- func (p Pressure) Attobars() float64
- func (p Pressure) Attopascals() float64
- func (p Pressure) Bars() float64
- func (p Pressure) Centibars() float64
- func (p Pressure) Centipascals() float64
- func (p Pressure) Decabars() float64
- func (p Pressure) Decapascals() float64
- func (p Pressure) Decibars() float64
- func (p Pressure) Decipascals() float64
- func (p Pressure) Exabars() float64
- func (p Pressure) Exapascals() float64
- func (p Pressure) Femtobars() float64
- func (p Pressure) Femtopascals() float64
- func (p Pressure) Gigabars() float64
- func (p Pressure) Gigapascals() float64
- func (p Pressure) Hectobars() float64
- func (p Pressure) Hectopascals() float64
- func (p Pressure) InchOfMercury() float64
- func (p Pressure) Kilobars() float64
- func (p Pressure) Kilopascals() float64
- func (p Pressure) Megabars() float64
- func (p Pressure) Megapascals() float64
- func (p Pressure) Microbars() float64
- func (p Pressure) Micropascals() float64
- func (p Pressure) Millibars() float64
- func (p Pressure) Millipascals() float64
- func (p Pressure) Nanobars() float64
- func (p Pressure) Nanopascals() float64
- func (p Pressure) Pascals() float64
- func (p Pressure) Petabars() float64
- func (p Pressure) Petapascals() float64
- func (p Pressure) Picobars() float64
- func (p Pressure) Picopascals() float64
- func (p Pressure) PoundsPerSquareInch() float64
- func (p Pressure) TechAtmospheres() float64
- func (p Pressure) Terabars() float64
- func (p Pressure) Terapascals() float64
- func (p Pressure) Torrs() float64
- func (p Pressure) Yoctobars() float64
- func (p Pressure) Yoctopascals() float64
- func (p Pressure) Yottabars() float64
- func (p Pressure) Yottapascals() float64
- func (p Pressure) Zeptobars() float64
- func (p Pressure) Zeptopascals() float64
- func (p Pressure) Zettabars() float64
- func (p Pressure) Zettapascals() float64
- type Speed
- type Temperature
- func FromCelsius(t float64) Temperature
- func FromDelisle(t float64) Temperature
- func FromFahrenheit(t float64) Temperature
- func FromKelvin(t float64) Temperature
- func FromNewton(t float64) Temperature
- func FromRankine(t float64) Temperature
- func FromReaumur(t float64) Temperature
- func FromRomer(t float64) Temperature
- func (t Temperature) Celsius() float64
- func (t Temperature) Delisle() float64
- func (t Temperature) Fahrenheit() float64
- func (t Temperature) Kelvin() float64
- func (t Temperature) Newton() float64
- func (t Temperature) Rankine() float64
- func (t Temperature) Reaumur() float64
- func (t Temperature) Romer() float64
- type Unit
- type Voltage
- func (v Voltage) Attovolts() float64
- func (v Voltage) Centivolts() float64
- func (v Voltage) Decavolts() float64
- func (v Voltage) Decivolts() float64
- func (v Voltage) Exavolts() float64
- func (v Voltage) Femtovolts() float64
- func (v Voltage) Gigavolts() float64
- func (v Voltage) Hectovolts() float64
- func (v Voltage) Kilovolts() float64
- func (v Voltage) Megavolts() float64
- func (v Voltage) Microvolts() float64
- func (v Voltage) Millivolts() float64
- func (v Voltage) Nanovolts() float64
- func (v Voltage) Petavolts() float64
- func (v Voltage) Picovolts() float64
- func (v Voltage) Teravolts() float64
- func (v Voltage) Volts() float64
- func (v Voltage) Yoctovolts() float64
- func (v Voltage) Yottavolts() float64
- func (v Voltage) Zeptovolts() float64
- func (v Voltage) Zettavolts() float64
- type Volume
- func (v Volume) Attoliters() float64
- func (v Volume) AustralianTableSpoons() float64
- func (v Volume) Centiliters() float64
- func (v Volume) CubicAttometers() float64
- func (v Volume) CubicCentimeters() float64
- func (v Volume) CubicDecameters() float64
- func (v Volume) CubicDecimeters() float64
- func (v Volume) CubicExameters() float64
- func (v Volume) CubicFeet() float64
- func (v Volume) CubicFemtometers() float64
- func (v Volume) CubicFurlongs() float64
- func (v Volume) CubicGigameters() float64
- func (v Volume) CubicHectometers() float64
- func (v Volume) CubicInches() float64
- func (v Volume) CubicKilometers() float64
- func (v Volume) CubicMegameters() float64
- func (v Volume) CubicMeters() float64
- func (v Volume) CubicMicrometers() float64
- func (v Volume) CubicMiles() float64
- func (v Volume) CubicMillimeters() float64
- func (v Volume) CubicNanometers() float64
- func (v Volume) CubicPetameters() float64
- func (v Volume) CubicPicometers() float64
- func (v Volume) CubicTerameters() float64
- func (v Volume) CubicYards() float64
- func (v Volume) CubicYoctometers() float64
- func (v Volume) CubicYottameters() float64
- func (v Volume) CubicZeptometers() float64
- func (v Volume) CubicZettameters() float64
- func (v Volume) Decaliters() float64
- func (v Volume) Deciliters() float64
- func (v Volume) Exaliters() float64
- func (v Volume) Femtoliters() float64
- func (v Volume) Gigaliters() float64
- func (v Volume) Hectoliters() float64
- func (v Volume) ImperialBushels() float64
- func (v Volume) ImperialCups() float64
- func (v Volume) ImperialFluidDrams() float64
- func (v Volume) ImperialFluidOunces() float64
- func (v Volume) ImperialGallons() float64
- func (v Volume) ImperialGills() float64
- func (v Volume) ImperialPecks() float64
- func (v Volume) ImperialPints() float64
- func (v Volume) ImperialQuarts() float64
- func (v Volume) ImperialTableSpoons() float64
- func (v Volume) ImperialTeaSpoons() float64
- func (v Volume) Kiloliters() float64
- func (v Volume) Liters() float64
- func (v Volume) Megaliters() float64
- func (v Volume) MetricTableSpoons() float64
- func (v Volume) MetricTeaSpoons() float64
- func (v Volume) Microliters() float64
- func (v Volume) Milliliters() float64
- func (v Volume) Nanoliters() float64
- func (v Volume) Petaliters() float64
- func (v Volume) Picoliters() float64
- func (v Volume) Teraliters() float64
- func (v Volume) USBushels() float64
- func (v Volume) USCups() float64
- func (v Volume) USDryGallons() float64
- func (v Volume) USDryPints() float64
- func (v Volume) USDryQuarts() float64
- func (v Volume) USFluidDrams() float64
- func (v Volume) USFluidOunces() float64
- func (v Volume) USGills() float64
- func (v Volume) USLegalCups() float64
- func (v Volume) USLiquidGallons() float64
- func (v Volume) USLiquidPints() float64
- func (v Volume) USLiquidQuarts() float64
- func (v Volume) USPecks() float64
- func (v Volume) USTableSpoons() float64
- func (v Volume) USTeaSpoons() float64
- func (v Volume) Yoctoliters() float64
- func (v Volume) Zepoliters() float64
- func (v Volume) Zettaliters() float64
Constants ¶
const ( CentimeterPerSecondSquared = MeterPerSecondSquared * 1e-2 // SI MeterPerSecondSquared Acceleration = 1e0 // SI FootPerSecondSquared = MeterPerSecondSquared * 0.304800 // US StandardGravity = MeterPerSecondSquared * 9.80665 // space Gal = CentimeterPerSecondSquared // alias )
...
const ( Yoctoradian = Radian * 1e-24 Zeptoradian = Radian * 1e-21 Attoradian = Radian * 1e-18 Femtoradian = Radian * 1e-15 Picoradian = Radian * 1e-12 Nanoradian = Radian * 1e-9 Microradian = Radian * 1e-6 Milliradian = Radian * 1e-3 Centiradian = Radian * 1e-2 Deciradian = Radian * 1e-1 Radian Angle = 1e0 Degree = Radian * math.Pi / 180 Arcminute = Degree / 60 Arcsecond = Degree / 3600 Milliarcsecond = Arcsecond * 1e-3 Microarcsecond = Arcsecond * 1e-6 )
...
const ( // SI SquareYoctometer = SquareMeter * 1e-48 SquareZeptometer = SquareMeter * 1e-42 SquareAttometer = SquareMeter * 1e-36 SquareFemtometer = SquareMeter * 1e-30 SquarePicometer = SquareMeter * 1e-24 SquareNanometer = SquareMeter * 1e-18 SquareMicrometer = SquareMeter * 1e-12 SquareMillimeter = SquareMeter * 1e-6 SquareCentimeter = SquareMeter * 1e-4 SquareDecimeter = SquareMeter * 1e-2 SquareMeter Area = 1e0 SquareDecameter = SquareMeter * 1e2 SquareHectometer = SquareMeter * 1e4 SquareKilometer = SquareMeter * 1e6 SquareMegameter = SquareMeter * 1e12 SquareGigameter = SquareMeter * 1e18 SquareTerameter = SquareMeter * 1e24 SquarePetameter = SquareMeter * 1e30 SquareExameter = SquareMeter * 1e36 SquareZettameter = SquareMeter * 1e42 SquareYottameter = SquareMeter * 1e48 // US SquareInch = SquareMeter * 0.00064516 SquareFoot = SquareInch * 144 SquareYard = SquareFoot * 9 Acre = SquareYard * 4840 SquareMile = Acre * 640 // TW //1坪(twPing)= 3.30579 平方公尺 //1公頃(hectare,twGongQing)= 10000 平方公尺 //1甲(twJia)= 2934*3.30579 平方公尺 //1分(twFen)= 293.4*3.30579 平方公尺 TWGongQing = SquareMeter * 10000 TWPing = SquareMeter / 3.30579 TWFen = SquareMeter / (293.4 * 3.30579) TWJia = SquareMeter / (2934 * 3.30579) // imperial SquareRod = SquareFoot * 272.25 Rood = SquareYard * 1210 // aliases Centiare = SquareMeter Are = SquareDecameter Hectare = SquareHectometer SquarePerch = SquareRod )
...
const ( // base 10 (SI prefixes) BitPerSecond Datarate = 1e0 KilobitPerSecond = BitPerSecond * 1e3 MegabitPerSecond = BitPerSecond * 1e6 GigabitPerSecond = BitPerSecond * 1e9 TerabitPerSecond = BitPerSecond * 1e12 PetabitPerSecond = BitPerSecond * 1e15 ExabitPerSecond = BitPerSecond * 1e18 ZettabitPerSecond = BitPerSecond * 1e21 YottabitPerSecond = BitPerSecond * 1e24 BytePerSecond = BitPerSecond * 8 KilobytePerSecond = BytePerSecond * 1e3 MegabytePerSecond = BytePerSecond * 1e6 GigabytePerSecond = BytePerSecond * 1e9 TerabytePerSecond = BytePerSecond * 1e12 PetabytePerSecond = BytePerSecond * 1e15 ExabytePerSecond = BytePerSecond * 1e18 ZettabytePerSecond = BytePerSecond * 1e21 YottabytePerSecond = BytePerSecond * 1e24 // base 2 (IEC prefixes) KibibitPerSecond = BitPerSecond * 1024 MebibitPerSecond = KibibitPerSecond * 1024 GibibitPerSecond = MebibitPerSecond * 1024 TebibitPerSecond = GibibitPerSecond * 1024 PebibitPerSecond = TebibitPerSecond * 1024 ExbibitPerSecond = PebibitPerSecond * 1024 ZebibitPerSecond = ExbibitPerSecond * 1024 YobibitPerSecond = ZebibitPerSecond * 1024 KibibytePerSecond = BytePerSecond * 1024 MebibytePerSecond = KibibytePerSecond * 1024 GibibytePerSecond = MebibytePerSecond * 1024 TebibytePerSecond = GibibytePerSecond * 1024 PebibytePerSecond = TebibytePerSecond * 1024 ExbibytePerSecond = PebibytePerSecond * 1024 ZebibytePerSecond = ExbibytePerSecond * 1024 YobibytePerSecond = ZebibytePerSecond * 1024 )
...
const ( // base 10 (SI prefixes) Bit Datasize = 1e0 Kilobit = Bit * 1e3 Megabit = Bit * 1e6 Gigabit = Bit * 1e9 Terabit = Bit * 1e12 Petabit = Bit * 1e15 Exabit = Bit * 1e18 Zettabit = Bit * 1e21 Yottabit = Bit * 1e24 Ronnabit = Bit * 1e27 Quettabit = Bit * 1e30 Byte = Bit * 8 Kilobyte = Byte * 1e3 Megabyte = Byte * 1e6 Gigabyte = Byte * 1e9 Terabyte = Byte * 1e12 Petabyte = Byte * 1e15 Exabyte = Byte * 1e18 Zettabyte = Byte * 1e21 Yottabyte = Byte * 1e24 Ronnabyte = Byte * 1e27 Quettabyte = Byte * 1e30 // base 2 (IEC prefixes) Kibibit = Bit * 1024 Mebibit = Kibibit * 1024 Gibibit = Mebibit * 1024 Tebibit = Gibibit * 1024 Pebibit = Tebibit * 1024 Exbibit = Pebibit * 1024 Zebibit = Exbibit * 1024 Yobibit = Zebibit * 1024 Kibibyte = Byte * 1024 Mebibyte = Kibibyte * 1024 Gibibyte = Mebibyte * 1024 Tebibyte = Gibibyte * 1024 Pebibyte = Tebibyte * 1024 Exbibyte = Pebibyte * 1024 Zebibyte = Exbibyte * 1024 Yobibyte = Zebibyte * 1024 )
...
const ( // SI Yoctosecond = Second * 1e-24 Zeptosecond = Second * 1e-21 Attosecond = Second * 1e-18 Femtosecond = Second * 1e-15 Picosecond = Second * 1e-12 Nanosecond = Second * 1e-9 Microsecond = Second * 1e-6 Millisecond = Second * 1e-3 Centisecond = Second * 1e-2 Decisecond = Second * 1e-1 Second Duration = 1e0 Decasecond = Second * 1e1 Hectosecond = Second * 1e2 Kilosecond = Second * 1e3 Megasecond = Second * 1e6 Gigasecond = Second * 1e9 Terasecond = Second * 1e12 Petasecond = Second * 1e15 Exasecond = Second * 1e18 Zettasecond = Second * 1e21 Yottasecond = Second * 1e24 // non-SI Minute = Second * 60 Hour = Minute * 60 Day = Hour * 24 Week = Day * 7 ThirtyDayMonth = Day * 30 JulianYear = Day * 365.25 )
...
const ( // SI Yoctoampere = Ampere * 1e-24 Zeptoampere = Ampere * 1e-21 Attoampere = Ampere * 1e-18 Femtoampere = Ampere * 1e-15 Picoampere = Ampere * 1e-12 Nanoampere = Ampere * 1e-9 Microampere = Ampere * 1e-6 Milliampere = Ampere * 1e-3 Deciampere = Ampere * 1e-2 Centiampere = Ampere * 1e-1 Ampere ElectricCurrent = 1e0 Decaampere = Ampere * 1e1 Hectoampere = Ampere * 1e2 Kiloampere = Ampere * 1e3 Megaampere = Ampere * 1e6 Gigaampere = Ampere * 1e9 Teraampere = Ampere * 1e12 Petaampere = Ampere * 1e15 Exaampere = Ampere * 1e18 Zettaampere = Ampere * 1e21 Yottaampere = Ampere * 1e24 )
...
const ( // SI Yoctojoule = Joule * 1e-24 Zeptojoule = Joule * 1e-21 Attojoule = Joule * 1e-18 Femtojoule = Joule * 1e-15 Picojoule = Joule * 1e-12 Nanojoule = Joule * 1e-9 Microjoule = Joule * 1e-6 Millijoule = Joule * 1e-3 Centijoule = Joule * 1e-2 Decijoule = Joule * 1e-1 Joule Energy = 1e0 Decajoule = Joule * 1e1 Hectojoule = Joule * 1e2 Kilojoule = Joule * 1e3 Megajoule = Joule * 1e6 Gigajoule = Joule * 1e9 Terajoule = Joule * 1e12 Petajoule = Joule * 1e15 Exajoule = Joule * 1e18 Zettajoule = Joule * 1e21 Yottajoule = Joule * 1e24 // SI-derived YoctowattHour = WattHour * 1e-24 ZeptowattHour = WattHour * 1e-21 AttowattHour = WattHour * 1e-18 FemtowattHour = WattHour * 1e-15 PicowattHour = WattHour * 1e-12 NanowattHour = WattHour * 1e-9 MicrowattHour = WattHour * 1e-6 MilliwattHour = WattHour * 1e-3 CentiwattHour = WattHour * 1e-2 DeciwattHour = WattHour * 1e-1 WattHour = Joule * 3600 DecawattHour = WattHour * 1e1 HectowattHour = WattHour * 1e2 KilowattHour = WattHour * 1e3 MegawattHour = WattHour * 1e6 GigawattHour = WattHour * 1e9 TerawattHour = WattHour * 1e12 PetawattHour = WattHour * 1e15 ExawattHour = WattHour * 1e18 ZettawattHour = WattHour * 1e21 YottawattHour = WattHour * 1e24 // constant from https://en.wikipedia.org/wiki/Calorie#Definitions Gramcalorie = Joule * 4.184 Kilocalorie = Gramcalorie * 1e3 Megacalorie = Gramcalorie * 1e6 )
...
const ( // SI Newton Force = 1e0 // non-SI Dyne = Newton * 1e-5 KilogramForce = Newton * 9.80665 PoundForce = Newton * 4.448222 Poundal = Newton * 0.138255 // aliases Kilopond = KilogramForce )
...
const ( // SI Yoctohertz = Hertz * 1e-24 Zeptohertz = Hertz * 1e-21 Attohertz = Hertz * 1e-18 Femtohertz = Hertz * 1e-15 Picohertz = Hertz * 1e-12 Nanohertz = Hertz * 1e-9 Microhertz = Hertz * 1e-6 Millihertz = Hertz * 1e-3 Centihertz = Hertz * 1e-2 Decihertz = Hertz * 1e-1 Hertz Frequency = 1e0 Decahertz = Hertz * 1e1 Hectohertz = Hertz * 1e2 Kilohertz = Hertz * 1e3 Megahertz = Hertz * 1e6 Gigahertz = Hertz * 1e9 Terahertz = Hertz * 1e12 Petahertz = Hertz * 1e15 Exahertz = Hertz * 1e18 Zettahertz = Hertz * 1e21 Yottahertz = Hertz * 1e24 )
...
const ( // SI Yoctometer = Meter * 1e-24 Zeptometer = Meter * 1e-21 Attometer = Meter * 1e-18 Femtometer = Meter * 1e-15 Picometer = Meter * 1e-12 Nanometer = Meter * 1e-9 Micrometer = Meter * 1e-6 Millimeter = Meter * 1e-3 Centimeter = Meter * 1e-2 Decimeter = Meter * 1e-1 Meter Length = 1e0 Decameter = Meter * 1e1 Hectometer = Meter * 1e2 Kilometer = Meter * 1e3 Megameter = Meter * 1e6 Gigameter = Meter * 1e9 Terameter = Meter * 1e12 Petameter = Meter * 1e15 Exameter = Meter * 1e18 Zettameter = Meter * 1e21 Yottameter = Meter * 1e24 Ronnameter = Meter * 1e27 Quettameter = Meter * 1e30 // US Inch = Meter * 0.0254 Hand = Inch * 4 Foot = Inch * 12 Yard = Foot * 3 Link = Chain / 100 Rod = Yard * 5.5 Chain = Rod * 4 Furlong = Chain * 10 Mile = Meter * 1609.344 // US maritime Fathom = Foot * 6 Cable = NauticalMile / 10 NauticalMile = Meter * 1852 // space LunarDistance = Kilometer * 384400 AstronomicalUnit = Meter * 149597870700 LightYear = Meter * 9460730472580800 // chemistry Angstrom = Meter * 1e-10 )
...
const ( // SI Yoctogram = Gram * 1e-24 Zeptogram = Gram * 1e-21 Attogram = Gram * 1e-18 Femtogram = Gram * 1e-15 Picogram = Gram * 1e-12 Nanogram = Gram * 1e-9 Microgram = Gram * 1e-6 Milligram = Gram * 1e-3 Centigram = Gram * 1e-2 Decigram = Gram * 1e-1 Gram = Kilogram * 1e-3 Decagram = Gram * 1e1 Hectogram = Gram * 1e2 Kilogram Mass = 1e0 Megagram = Gram * 1e6 Gigagram = Gram * 1e9 Teragram = Gram * 1e12 Petagram = Gram * 1e15 Exagram = Gram * 1e18 Zettagram = Gram * 1e21 Yottagram = Gram * 1e24 Ronnagram = Gram * 1e27 Quettagram = Gram * 1e30 // non-SI Tonne = Megagram Kilotonne = Gigagram Megatonne = Teragram Gigatonne = Petagram Teratonne = Exagram Petatonne = Zettagram Exatonne = Yottagram // US, avoirdupois TroyGrain = Milligram * 64.79891 AvoirdupoisDram = AvoirdupoisOunce / 16 AvoirdupoisOunce = TroyGrain * 437.5 AvoirdupoisPound = TroyGrain * 7000 UsStone = AvoirdupoisPound * 14 UsQuarter = ShortHundredweight / 4 ShortHundredweight = AvoirdupoisPound * 100 // UK UkStone = Gram * 6350.29318 UkQuarter = LongHundredweight / 4 LongHundredweight = UkStone * 8 TroyOunce = TroyGrain * 480 TroyPound = TroyGrain * 5760 // aliases CentalHundredweight = ShortHundredweight // british ImperialHundredweight = LongHundredweight // british )
...
const ( // SI Yoctowatt = Watt * 1e-24 Zeptowatt = Watt * 1e-21 Attowatt = Watt * 1e-18 Femtowatt = Watt * 1e-15 Picowatt = Watt * 1e-12 Nanowatt = Watt * 1e-9 Microwatt = Watt * 1e-6 Milliwatt = Watt * 1e-3 Centiwatt = Watt * 1e-2 Deciwatt = Watt * 1e-1 Watt Power = 1e0 Decawatt = Watt * 1e1 Hectowatt = Watt * 1e2 Kilowatt = Watt * 1e3 Megawatt = Watt * 1e6 Gigawatt = Watt * 1e9 Terawatt = Watt * 1e12 Petawatt = Watt * 1e15 Exawatt = Watt * 1e18 Zettawatt = Watt * 1e21 Yottawatt = Watt * 1e24 // non-SI Pferdestarke = Watt * 735.49875 )
...
const ( // SI derived Yoctopascal = Pascal * 1e-24 Zeptopascal = Pascal * 1e-21 Attopascal = Pascal * 1e-18 Femtopascal = Pascal * 1e-15 Picopascal = Pascal * 1e-12 Nanopascal = Pascal * 1e-9 Micropascal = Pascal * 1e-6 Millipascal = Pascal * 1e-3 Centipascal = Pascal * 1e-2 Decipascal = Pascal * 1e-1 Pascal Pressure = 1e0 Decapascal = Pascal * 1e1 Hectopascal = Pascal * 1e2 Kilopascal = Pascal * 1e3 Megapascal = Pascal * 1e6 Gigapascal = Pascal * 1e9 Terapascal = Pascal * 1e12 Petapascal = Pascal * 1e15 Exapascal = Pascal * 1e18 Zettapascal = Pascal * 1e21 Yottapascal = Pascal * 1e24 // non-SI Yoctobar = Bar * 1e-24 Zeptobar = Bar * 1e-21 Attobar = Bar * 1e-18 Femtobar = Bar * 1e-15 Picobar = Bar * 1e-12 Nanobar = Bar * 1e-9 Microbar = Bar * 1e-6 Millibar = Bar * 1e-3 Centibar = Bar * 1e-2 Decibar = Bar * 1e-1 Bar = Pascal * 1e5 Decabar = Bar * 1e1 Hectobar = Bar * 1e2 Kilobar = Bar * 1e3 Megabar = Bar * 1e6 Gigabar = Bar * 1e9 Terabar = Bar * 1e12 Petabar = Bar * 1e15 Exabar = Bar * 1e18 Zettabar = Bar * 1e21 Yottabar = Bar * 1e24 Atmosphere = Pascal * 1.01325 * 1e5 TechAtmosphere = Pascal * 9.80665 * 1e4 Torr = Pascal * 133.3224 PoundsPerSquareInch = Pascal * 6.8948 * 1e3 InchOfMercury = Pascal * 3386.389 )
...
const ( MetersPerSecond Speed = 1e0 KilometersPerHour = MetersPerSecond * 0.277778 FeetPerSecond = MetersPerSecond * 0.3048 MilesPerHour = MetersPerSecond * 0.44704 Knot = MetersPerSecond * 0.514444 SpeedOfLight = MetersPerSecond * 299792458 )
...
const ( // SI Yoctovolt = Volt * 1e-24 Zeptovolt = Volt * 1e-21 Attovolt = Volt * 1e-18 Femtovolt = Volt * 1e-15 Picovolt = Volt * 1e-12 Nanovolt = Volt * 1e-9 Microvolt = Volt * 1e-6 Millivolt = Volt * 1e-3 Centivolt = Volt * 1e-2 Decivolt = Volt * 1e-1 Volt Voltage = 1e0 Decavolt = Volt * 1e1 Hectovolt = Volt * 1e2 Kilovolt = Volt * 1e3 Megavolt = Volt * 1e6 Gigavolt = Volt * 1e9 Teravolt = Volt * 1e12 Petavolt = Volt * 1e15 Exavolt = Volt * 1e18 Zettavolt = Volt * 1e21 Yottavolt = Volt * 1e24 )
...
const ( // SI CubicYoctometer = CubicMeter * 1e-72 CubicZeptometer = CubicMeter * 1e-63 CubicAttometer = CubicMeter * 1e-54 CubicFemtometer = CubicMeter * 1e-45 CubicPicometer = CubicMeter * 1e-36 CubicNanometer = CubicMeter * 1e-27 CubicMicrometer = CubicMeter * 1e-18 CubicMillimeter = CubicMeter * 1e-9 CubicCentimeter = CubicMeter * 1e-6 CubicDecimeter = CubicMeter * 1e-3 CubicMeter Volume = 1e0 CubicDecameter = CubicMeter * 1e3 CubicHectometer = CubicMeter * 1e6 CubicKilometer = CubicMeter * 1e9 CubicMegameter = CubicMeter * 1e18 CubicGigameter = CubicMeter * 1e27 CubicTerameter = CubicMeter * 1e36 CubicPetameter = CubicMeter * 1e45 CubicExameter = CubicMeter * 1e54 CubicZettameter = CubicMeter * 1e63 CubicYottameter = CubicMeter * 1e72 // SI derived Yoctoliter = Liter * 1e-24 Zepoliter = Liter * 1e-21 Attoliter = Liter * 1e-18 Femtoliter = Liter * 1e-15 Picoliter = Liter * 1e-12 Nanoliter = Liter * 1e-9 Microliter = Liter * 1e-6 Milliliter = Liter * 1e-3 Centiliter = Liter * 1e-2 Deciliter = Liter * 1e-1 Liter = CubicMeter * 1e-3 Decaliter = Liter * 1e1 Hectoliter = Liter * 1e2 Kiloliter = Liter * 1e3 Megaliter = Liter * 1e6 Gigaliter = Liter * 1e9 Teraliter = Liter * 1e12 Petaliter = Liter * 1e15 Exaliter = Liter * 1e18 Zettaliter = Liter * 1e21 Yottaliter = Liter * 1e24 // US CubicInch = Liter * 0.016387064 CubicFoot = CubicInch * 1728 CubicYard = CubicFoot * 27 CubicMile = CubicYard * 5451776000 CubicFurlong = CubicMile * 0.00195314 // imperial liquid ImperialGallon = Liter * 4.54609 ImperialQuart = ImperialGallon / 4 ImperialPint = ImperialQuart / 2 ImperialCup = ImperialPint / 2 ImperialGill = ImperialPint / 4 ImperialFluidOunce = ImperialGill / 5 ImperialFluidDram = ImperialFluidOunce / 8 ImperialPeck = ImperialGallon * 2 ImperialBushel = ImperialPeck * 4 // metric cooking MetricTableSpoon = Milliliter * 15 MetricTeaSpoon = Milliliter * 5 // US liquid USLiquidGallon = CubicInch * 231 USLiquidQuart = CubicInch * 57.75 USLiquidPint = CubicInch * 28.875 USCup = USLiquidPint / 2 USLegalCup = Milliliter * 240 USGill = Milliliter * 118.29411825 USFluidDram = USFluidOunce / 8 USFluidOunce = USLiquidGallon / 128 USTableSpoon = USFluidOunce / 2 USTeaSpoon = USTableSpoon / 3 // US dry USDryQuart = USDryGallon / 4 USBushel = USPeck * 4 USPeck = USDryGallon * 2 USDryGallon = CubicInch * 268.8025 USDryPint = CubicInch * 33.6003125 // misc AustralianTableSpoon = Milliliter * 20 // aliases ImperialTableSpoon = MetricTableSpoon ImperialTeaSpoon = MetricTeaSpoon )
...
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Acceleration ¶
type Acceleration Unit
Acceleration represents a SI unit of acceleration (in meter per second squared, m/s²)
func (Acceleration) CentimetersPerSecondSquared ¶
func (a Acceleration) CentimetersPerSecondSquared() float64
CentimetersPerSecondSquared returns the acceleration in cm/s²
func (Acceleration) FeetPerSecondSquared ¶
func (a Acceleration) FeetPerSecondSquared() float64
FeetPerSecondSquared returns the acceleration in ft/s²
func (Acceleration) Gals ¶
func (a Acceleration) Gals() float64
Gals returns the acceleration in Gal
func (Acceleration) MetersPerSecondSquared ¶
func (a Acceleration) MetersPerSecondSquared() float64
MetersPerSecondSquared returns the acceleration in m/s²
func (Acceleration) StandardGravity ¶
func (a Acceleration) StandardGravity() float64
StandardGravity returns the acceleration in ɡ₀
type AmountOfSubstance ¶
type AmountOfSubstance Unit
AmountOfSubstance represents a SI unit of amount of substance (in mole, mol)
const (
Mole AmountOfSubstance = 1e0 // SI
)
...
func (AmountOfSubstance) Moles ¶
func (a AmountOfSubstance) Moles() float64
Moles returns the amount of substance in mol
type Angle ¶
type Angle Unit
Angle represents a SI unit of angle (in radians, ㎭)
func (Angle) Centiradians ¶
Centiradians returns the angle in c㎭
func (Angle) Femtoradians ¶
Femtoradians returns the angle in f㎭
func (Angle) Microarcseconds ¶
Microarcseconds returns the angle in µasec
func (Angle) Microradians ¶
Microradians returns the angle in µ㎭
func (Angle) Milliarcseconds ¶
Milliarcseconds returns the angle in masec
func (Angle) Milliradians ¶
Milliradians returns the angle in m㎭
func (Angle) Yoctoradians ¶
Yoctoradians returns the angle in y㎭
func (Angle) Zeptoradians ¶
Zeptoradians returns the angle in z㎭
type Area ¶
type Area Unit
Area represents a SI unit of area (in square meters, m²)
func (Area) SquareAttometers ¶
SquareAttometers returns the area in am²
func (Area) SquareCentimeters ¶
SquareCentimeters returns the area in cm²
func (Area) SquareDecameter ¶
SquareDecameter returns the area in dam²
func (Area) SquareDecimeters ¶
SquareDecimeters returns the area in dm²
func (Area) SquareExameters ¶
SquareExameters returns the area in Em²
func (Area) SquareFemtometers ¶
SquareFemtometers returns the area in fm²
func (Area) SquareGigameters ¶
SquareGigameters returns the area in Gm²
func (Area) SquareHectometer ¶
SquareHectometer returns the area in hm² (hectare)
func (Area) SquareInches ¶
SquareInches returns the area in in²
func (Area) SquareKilometers ¶
SquareKilometers returns the area in km²
func (Area) SquareMegameters ¶
SquareMegameters returns the area in Mm²
func (Area) SquareMicrometers ¶
SquareMicrometers returns the area in µm²
func (Area) SquareMillimeters ¶
SquareMillimeters returns the area in mm²
func (Area) SquareNanometers ¶
SquareNanometers returns the area in nm²
func (Area) SquarePetameters ¶
SquarePetameters returns the area in Pm²
func (Area) SquarePicometers ¶
SquarePicometers returns the area in pm²
func (Area) SquareRods ¶
SquareRods returns the area in square rods
func (Area) SquareTerameters ¶
SquareTerameters returns the area in Tm²
func (Area) SquareYoctometers ¶
SquareYoctometers returns the area in ym²
func (Area) SquareYottameters ¶
SquareYottameters returns the area in Ym²
func (Area) SquareZeptometers ¶
SquareZeptometers returns the area in zm²
func (Area) SquareZettameters ¶
SquareZettameters returns the area in Zm²
type Datarate ¶
type Datarate Unit
Datarate represents a unit of data rate (in bits per second, bit/s)
func (Datarate) BitsPerSecond ¶
BitsPerSecond returns the data rate in bit/s
func (Datarate) BytesPerSecond ¶
BytesPerSecond returns the data rate in B/s
func (Datarate) ExabitsPerSecond ¶
ExabitsPerSecond returns the data rate in Ebit/s
func (Datarate) ExabytesPerSecond ¶
ExabytesPerSecond returns the data rate in EB/s
func (Datarate) ExbibitsPerSecond ¶
ExbibitsPerSecond returns the data rate in Eibit/s
func (Datarate) ExbibytesPerSecond ¶
ExbibytesPerSecond returns the data rate in EiB/s
func (Datarate) GibibitsPerSecond ¶
GibibitsPerSecond returns the data rate in Gibit/s
func (Datarate) GibibytesPerSecond ¶
GibibytesPerSecond returns the data rate in GiB/s
func (Datarate) GigabitsPerSecond ¶
GigabitsPerSecond returns the data rate in Gbit/s
func (Datarate) GigabytesPerSecond ¶
GigabytesPerSecond returns the data rate in GB/s
func (Datarate) KibibitsPerSecond ¶
KibibitsPerSecond returns the data rate in Kibit/s
func (Datarate) KibibytesPerSecond ¶
KibibytesPerSecond returns the data rate in KiB/s
func (Datarate) KilobitsPerSecond ¶
KilobitsPerSecond returns the data rate in kbit/s
func (Datarate) KilobytesPerSecond ¶
KilobytesPerSecond returns the data rate in kB/s
func (Datarate) MebibitsPerSecond ¶
MebibitsPerSecond returns the data rate in Mibit/s
func (Datarate) MebibytesPerSecond ¶
MebibytesPerSecond returns the data rate in MiB/s
func (Datarate) MegabitsPerSecond ¶
MegabitsPerSecond returns the data rate in Mbit/s
func (Datarate) MegabytesPerSecond ¶
MegabytesPerSecond returns the data rate in MB/s
func (Datarate) PebibitsPerSecond ¶
PebibitsPerSecond returns the data rate in Pibit/s
func (Datarate) PebibytesPerSecond ¶
PebibytesPerSecond returns the data rate in PiB/s
func (Datarate) PetabitsPerSecond ¶
PetabitsPerSecond returns the data rate in Pbit/s
func (Datarate) PetabytesPerSecond ¶
PetabytesPerSecond returns the data rate in PB/s
func (Datarate) TebibitsPerSecond ¶
TebibitsPerSecond returns the data rate in Tibit/s
func (Datarate) TebibytesPerSecond ¶
TebibytesPerSecond returns the data rate in TiB/s
func (Datarate) TerabitsPerSecond ¶
TerabitsPerSecond returns the data rate in Tbit/s
func (Datarate) TerabytesPerSecond ¶
TerabytesPerSecond returns the data rate in TB/s
func (Datarate) YobibitsPerSecond ¶
YobibitsPerSecond returns the data rate in Yibit/s
func (Datarate) YobibytesPerSecond ¶
YobibytesPerSecond returns the data rate in YiB/s
func (Datarate) YottabitsPerSecond ¶
YottabitsPerSecond returns the data rate in Ybit/s
func (Datarate) YottabytesPerSecond ¶
YottabytesPerSecond returns the data rate in YB/s
func (Datarate) ZebibitsPerSecond ¶
ZebibitsPerSecond returns the data rate in Zibit/s
func (Datarate) ZebibytesPerSecond ¶
ZebibytesPerSecond returns the data rate in ZiB/s
func (Datarate) ZettabitsPerSecond ¶
ZettabitsPerSecond returns the data rate in Zbit/s
func (Datarate) ZettabytesPerSecond ¶
ZettabytesPerSecond returns the data rate in ZB/s
type Datasize ¶
type Datasize Unit
Datasize represents a unit of data size (in bits, bit)
func (Datasize) Quettabits ¶
Quettabits returns the datasize in Qbit
func (Datasize) Quettabytes ¶
Quettabytes returns the datasize in RB
func (Datasize) Ronnabytes ¶
Ronnabytes returns the datasize in RB
func (Datasize) Yottabytes ¶
Yottabytes returns the datasize in YB
func (Datasize) Zettabytes ¶
Zettabytes returns the datasize in ZB
type Duration ¶
type Duration Unit
Duration represents a SI unit of time (in seconds, s)
func (Duration) Attoseconds ¶
Attoseconds returns the time in as
func (Duration) Centiseconds ¶
Centiseconds returns the time in cs
func (Duration) Decaseconds ¶
Decaseconds returns the time in das
func (Duration) Deciseconds ¶
Deciseconds returns the time in ds
func (Duration) Exaseconds ¶
Exaseconds returns the time in Es
func (Duration) Femtoseconds ¶
Femtoseconds returns the time in fs
func (Duration) Gigaseconds ¶
Gigaseconds returns the time in Gs
func (Duration) Hectoseconds ¶
Hectoseconds returns the time in hs
func (Duration) JulianYears ¶
JulianYears returns the time in Y
func (Duration) Kiloseconds ¶
Kiloseconds returns the time in ks
func (Duration) Megaseconds ¶
Megaseconds returns the time in Ms
func (Duration) Microseconds ¶
Microseconds returns the time in µs
func (Duration) Milliseconds ¶
Milliseconds returns the time in ms
func (Duration) Nanoseconds ¶
Nanoseconds returns the time in ns
func (Duration) Petaseconds ¶
Petaseconds returns the time in Ps
func (Duration) Picoseconds ¶
Picoseconds returns the time in ps
func (Duration) Teraseconds ¶
Teraseconds returns the time in Ts
func (Duration) ThirtyDayMonths ¶
ThirtyDayMonths returns the time in M
func (Duration) Yoctoseconds ¶
Yoctoseconds returns the time in ys
func (Duration) Yottaseconds ¶
Yottaseconds returns the time in Ys
func (Duration) Zeptoseconds ¶
Zeptoseconds returns the time in zs
func (Duration) Zettaseconds ¶
Zettaseconds returns the time in Zs
type ElectricCurrent ¶
type ElectricCurrent Unit
ElectricCurrent represents a SI unit of electric current (in ampere, A)
func (ElectricCurrent) Amperes ¶
func (c ElectricCurrent) Amperes() float64
Amperes returns the electric current in A
func (ElectricCurrent) Attoamperes ¶
func (c ElectricCurrent) Attoamperes() float64
Attoamperes returns the electric current in aA
func (ElectricCurrent) Centiamperes ¶
func (c ElectricCurrent) Centiamperes() float64
Centiamperes returns the electric current in cA
func (ElectricCurrent) Decaamperes ¶
func (c ElectricCurrent) Decaamperes() float64
Decaamperes returns the electric current in daA
func (ElectricCurrent) Deciamperes ¶
func (c ElectricCurrent) Deciamperes() float64
Deciamperes returns the electric current in dA
func (ElectricCurrent) Exaamperes ¶
func (c ElectricCurrent) Exaamperes() float64
Exaamperes returns the electric current in EA
func (ElectricCurrent) Femtoamperes ¶
func (c ElectricCurrent) Femtoamperes() float64
Femtoamperes returns the electric current in fA
func (ElectricCurrent) Gigaamperes ¶
func (c ElectricCurrent) Gigaamperes() float64
Gigaamperes returns the electric current in GA
func (ElectricCurrent) Hectoamperes ¶
func (c ElectricCurrent) Hectoamperes() float64
Hectoamperes returns the electric current in hA
func (ElectricCurrent) Kiloamperes ¶
func (c ElectricCurrent) Kiloamperes() float64
Kiloamperes returns the electric current in kA
func (ElectricCurrent) Megaamperes ¶
func (c ElectricCurrent) Megaamperes() float64
Megaamperes returns the electric current in MA
func (ElectricCurrent) Microamperes ¶
func (c ElectricCurrent) Microamperes() float64
Microamperes returns the electric current in µA
func (ElectricCurrent) Milliamperes ¶
func (c ElectricCurrent) Milliamperes() float64
Milliamperes returns the electric current in mA
func (ElectricCurrent) Nanoamperes ¶
func (c ElectricCurrent) Nanoamperes() float64
Nanoamperes returns the electric current in nA
func (ElectricCurrent) Petaamperes ¶
func (c ElectricCurrent) Petaamperes() float64
Petaamperes returns the electric current in PA
func (ElectricCurrent) Picoamperes ¶
func (c ElectricCurrent) Picoamperes() float64
Picoamperes returns the electric current in pA
func (ElectricCurrent) Teraamperes ¶
func (c ElectricCurrent) Teraamperes() float64
Teraamperes returns the electric current in TA
func (ElectricCurrent) Yoctoamperes ¶
func (c ElectricCurrent) Yoctoamperes() float64
Yoctoamperes returns the electric current in yA
func (ElectricCurrent) Yottaamperes ¶
func (c ElectricCurrent) Yottaamperes() float64
Yottaamperes returns the electric current in YA
func (ElectricCurrent) Zeptoamperes ¶
func (c ElectricCurrent) Zeptoamperes() float64
Zeptoamperes returns the electric current in zA
func (ElectricCurrent) Zettaamperes ¶
func (c ElectricCurrent) Zettaamperes() float64
Zettaamperes returns the electric current in ZA
type ElectricalConductance ¶
type ElectricalConductance Unit
ElectricalConductance represents a SI unit of electrical conductance (in siemens, S)
const (
Siemens ElectricalConductance = 1e0 // SI
)
...
func (ElectricalConductance) Siemens ¶
func (e ElectricalConductance) Siemens() float64
Siemens returns the amount of substance in S
type ElectricalResistance ¶
type ElectricalResistance Unit
ElectricalResistance represents a SI derived unit of electrical resistance (in ohm, Ω)
const (
Ohm ElectricalResistance = 1e0 // SI
)
...
func (ElectricalResistance) Ohms ¶
func (e ElectricalResistance) Ohms() float64
Ohms returns the electrical resistance in Ω
type Energy ¶
type Energy Unit
Energy represents a SI unit of energy (in joules, J)
func (Energy) AttowattHours ¶
AttowattHours returns the energy in aWh
func (Energy) Centijoules ¶
Centijoules returns the energy in cJ
func (Energy) CentiwattHours ¶
CentiwattHours returns the energy in cWh
func (Energy) DecawattHours ¶
DecawattHours returns the energy in daWh
func (Energy) DeciwattHours ¶
DeciwattHours returns the energy in dWh
func (Energy) ExawattHours ¶
ExawattHours returns the energy in EWh
func (Energy) Femtojoules ¶
Femtojoules returns the energy in fJ
func (Energy) FemtowattHours ¶
FemtowattHours returns the energy in fWh
func (Energy) GigawattHours ¶
GigawattHours returns the energy in GWh
func (Energy) Hectojoules ¶
Hectojoules returns the energy in hJ
func (Energy) HectowattHours ¶
HectowattHours returns the energy in hWh
func (Energy) KilowattHours ¶
KilowattHours returns the energy in kWh
func (Energy) MegawattHours ¶
MegawattHours returns the energy in MWh
func (Energy) Microjoules ¶
Microjoules returns the energy in µJ
func (Energy) MicrowattHours ¶
MicrowattHours returns the energy in µWh
func (Energy) Millijoules ¶
Millijoules returns the energy in mJ
func (Energy) MilliwattHours ¶
MilliwattHours returns the energy in mWh
func (Energy) NanowattHours ¶
NanowattHours returns the energy in nWh
func (Energy) PetawattHours ¶
PetawattHours returns the energy in PWh
func (Energy) PicowattHours ¶
PicowattHours returns the energy in pWh
func (Energy) TerawattHours ¶
TerawattHours returns the energy in TWh
func (Energy) Yoctojoules ¶
Yoctojoules returns the energy in yJ
func (Energy) YoctowattHours ¶
YoctowattHours returns the energy in yWh
func (Energy) Yottajoules ¶
Yottajoules returns the energy in YJ
func (Energy) YottawattHours ¶
YottawattHours returns the energy in YWh
func (Energy) Zeptojoules ¶
Zeptojoules returns the energy in zJ
func (Energy) ZeptowattHours ¶
ZeptowattHours returns the energy in zWh
func (Energy) Zettajoules ¶
Zettajoules returns the energy in ZJ
func (Energy) ZettawattHours ¶
ZettawattHours returns the energy in ZWh
type Force ¶
type Force Unit
Force represents a SI unit of force (in newtons, N)
func (Force) KilogramForce ¶
KilogramForce returns the force in kp
type Frequency ¶
type Frequency Unit
Frequency represents a SI unit of frequency (in hertz, Hz)
func (Frequency) Centihertz ¶
Centihertz returns the frequency in cHz
func (Frequency) Femtohertz ¶
Femtohertz returns the frequency in fHz
func (Frequency) Hectohertz ¶
Hectohertz returns the frequency in hHz
func (Frequency) Microhertz ¶
Microhertz returns the frequency in µHz
func (Frequency) Millihertz ¶
Millihertz returns the frequency in mHz
func (Frequency) Yoctohertz ¶
Yoctohertz returns the frequency in yHz
func (Frequency) Yottahertz ¶
Yottahertz returns the frequency in YHz
func (Frequency) Zeptohertz ¶
Zeptohertz returns the frequency in zHz
func (Frequency) Zettahertz ¶
Zettahertz returns the frequency in ZHz
type Illuminance ¶
type Illuminance Unit
Illuminance represents a SI unit for illuminance (in lux, lx)
const (
Lux Illuminance = 1e0 // SI
)
constants
type Length ¶
type Length Unit
Length represents a SI unit of length (in meters, m)
func (Length) AstronomicalUnits ¶
AstronomicalUnits returns the length in au
func (Length) Centimeters ¶
Centimeters returns the length in cm
func (Length) Decameters ¶
Decameters returns the length in dam
func (Length) Femtometers ¶
Femtometers returns the length in fm
func (Length) Gigameters ¶
Gigameters returns the length in in Gm
func (Length) Hectometers ¶
Hectometers returns the length in hm
func (Length) LunarDistances ¶
LunarDistances returns the length in ld
func (Length) Megameters ¶
Megameters returns the length in in Mm
func (Length) Micrometers ¶
Micrometers returns the length in microms
func (Length) Millimeters ¶
Millimeters returns the length in mm
func (Length) NauticalMiles ¶
NauticalMiles returns the length in nm
func (Length) Petameters ¶
Petameters returns the length in in Pm
func (Length) Quettameters ¶
Quettameters returns the length in in Qm
func (Length) Ronnameters ¶
Ronnameters returns the length in in Rm
func (Length) ScandinavianMiles ¶
ScandinavianMiles returns the length in in scandinavian miles (1 scandmile = 10 km)
func (Length) Terameters ¶
Terameters returns the length in in Tm
func (Length) Yoctometers ¶
Yoctometers returns the length in ym
func (Length) Yottameters ¶
Yottameters returns the length in in Ym
func (Length) Zeptometers ¶
Zeptometers returns the length in zm
func (Length) Zettameters ¶
Zettameters returns the length in in Zm
type LuminousFlux ¶
type LuminousFlux Unit
LuminousFlux represents a SI unit for luminous flux (in lumen, lm)
const (
Lumen LuminousFlux = 1e0 // SI
)
constants
func (LuminousFlux) Lumen ¶
func (l LuminousFlux) Lumen() float64
Lumen returns the luminous flux in lm
type LuminousIntensity ¶
type LuminousIntensity Unit
LuminousIntensity represents a SI unit for luminous intensity (in candela, cd)
const (
Candela LuminousIntensity = 1e0
)
constants
func (LuminousIntensity) Candela ¶
func (l LuminousIntensity) Candela() float64
Candela returns the luminous intensity in cd
type Mass ¶
type Mass Unit
Mass represents a SI unit of mass (in kilograms, kg)
func (Mass) AvoirdupoisDrams ¶
AvoirdupoisDrams returns the mass in XXX
func (Mass) AvoirdupoisOunces ¶
AvoirdupoisOunces returns the mass in oz
func (Mass) AvoirdupoisPounds ¶
AvoirdupoisPounds returns the mass in lb
func (Mass) LongHundredweights ¶
LongHundredweights returns the mass in cwt
func (Mass) ShortHundredweights ¶
ShortHundredweights returns the mass in cwt
type Power ¶
type Power Unit
Power represents a SI unit of power (in watts, W)
func (Power) Pferdestarke ¶
Pferdestarke returns the power in PS
type Pressure ¶
type Pressure Unit
Pressure represents a SI derived unit of pressure (in pascal, Pa)
func (Pressure) Atmospheres ¶
Atmospheres returns the pressure in atm
func (Pressure) Attopascals ¶
Attopascals returns the pressure in aPa
func (Pressure) Centipascals ¶
Centipascals returns the pressure in cPa
func (Pressure) Decapascals ¶
Decapascals returns the pressure in daPa
func (Pressure) Decipascals ¶
Decipascals returns the pressure in dPa
func (Pressure) Exapascals ¶
Exapascals returns the pressure in EPa
func (Pressure) Femtopascals ¶
Femtopascals returns the pressure in fPa
func (Pressure) Gigapascals ¶
Gigapascals returns the pressure in GPa
func (Pressure) Hectopascals ¶
Hectopascals returns the pressure in hPa
func (Pressure) InchOfMercury ¶
InchOfMercury returns the pressure in inch of mercury
func (Pressure) Kilopascals ¶
Kilopascals returns the pressure in kPa
func (Pressure) Megapascals ¶
Megapascals returns the pressure in MPa
func (Pressure) Micropascals ¶
Micropascals returns the pressure in µPa
func (Pressure) Millipascals ¶
Millipascals returns the pressure in mPa
func (Pressure) Nanopascals ¶
Nanopascals returns the pressure in nPa
func (Pressure) Petapascals ¶
Petapascals returns the pressure in PPa
func (Pressure) Picopascals ¶
Picopascals returns the pressure in pPa
func (Pressure) PoundsPerSquareInch ¶
PoundsPerSquareInch returns the pressure in psi
func (Pressure) TechAtmospheres ¶
TechAtmospheres returns the pressure in at
func (Pressure) Terapascals ¶
Terapascals returns the pressure in TPa
func (Pressure) Yoctopascals ¶
Yoctopascals returns the pressure in yPa
func (Pressure) Yottapascals ¶
Yottapascals returns the pressure in YPa
func (Pressure) Zeptopascals ¶
Zeptopascals returns the pressure in zPa
func (Pressure) Zettapascals ¶
Zettapascals returns the pressure in ZPa
type Speed ¶
type Speed Unit
Speed represents a unit of speed (in meters per second, m/s)
func (Speed) FeetPerSecond ¶
FeetPerSecond returns the speed in ft/s
func (Speed) KilometersPerHour ¶
KilometersPerHour returns the speed in km/h
func (Speed) MetersPerSecond ¶
MetersPerSecond returns the speed in m/s
func (Speed) MilesPerHour ¶
MilesPerHour returns the speed in mph
func (Speed) SpeedOfLight ¶
SpeedOfLight returns the speed in c
type Temperature ¶
type Temperature Unit
Temperature represents a SI unit of temperature (in kelvin, K)
const (
Kelvin Temperature = 1e0
)
...
func FromCelsius ¶
func FromCelsius(t float64) Temperature
FromCelsius converts temperature from °C to °K
func FromDelisle ¶
func FromDelisle(t float64) Temperature
FromDelisle converts temperature from °De to °K
func FromFahrenheit ¶
func FromFahrenheit(t float64) Temperature
FromFahrenheit converts temperature from °F to °K
func FromKelvin ¶
func FromKelvin(t float64) Temperature
FromKelvin converts temperature from °K to °K
func FromNewton ¶
func FromNewton(t float64) Temperature
FromNewton converts temperature from °N to °K
func FromRankine ¶
func FromRankine(t float64) Temperature
FromRankine converts temperature from °Ra to °K
func FromReaumur ¶
func FromReaumur(t float64) Temperature
FromReaumur converts temperature from °Re to °K
func FromRomer ¶
func FromRomer(t float64) Temperature
FromRomer converts temperature from °Ro to °K
func (Temperature) Celsius ¶
func (t Temperature) Celsius() float64
Celsius returns the temperature in °C
func (Temperature) Delisle ¶
func (t Temperature) Delisle() float64
Delisle returns the temperature in °De
func (Temperature) Fahrenheit ¶
func (t Temperature) Fahrenheit() float64
Fahrenheit returns the temperature in °F
func (Temperature) Kelvin ¶
func (t Temperature) Kelvin() float64
Kelvin returns the temperature in °K
func (Temperature) Newton ¶
func (t Temperature) Newton() float64
Newton returns the temperature in °N
func (Temperature) Rankine ¶
func (t Temperature) Rankine() float64
Rankine returns the temperature in °R
func (Temperature) Reaumur ¶
func (t Temperature) Reaumur() float64
Reaumur returns the temperature in °Ré
func (Temperature) Romer ¶
func (t Temperature) Romer() float64
Romer returns the temperature in °Rø
type Voltage ¶
type Voltage Unit
Voltage represents a unit of voltage (in volt, V)
func (Voltage) Centivolts ¶
Centivolts returns the voltage in cV
func (Voltage) Femtovolts ¶
Femtovolts returns the voltage in fV
func (Voltage) Hectovolts ¶
Hectovolts returns the voltage in hV
func (Voltage) Microvolts ¶
Microvolts returns the voltage in µV
func (Voltage) Millivolts ¶
Millivolts returns the voltage in mV
func (Voltage) Yoctovolts ¶
Yoctovolts returns the voltage in yV
func (Voltage) Yottavolts ¶
Yottavolts returns the voltage in YV
func (Voltage) Zeptovolts ¶
Zeptovolts returns the voltage in zV
func (Voltage) Zettavolts ¶
Zettavolts returns the voltage in ZV
type Volume ¶
type Volume Unit
Volume represents a volume in cubic meters
func (Volume) AustralianTableSpoons ¶
AustralianTableSpoons returns the volume in Australian tablespoons
func (Volume) Centiliters ¶
Centiliters returns the volume in cl
func (Volume) CubicAttometers ¶
CubicAttometers returns the volume in am³
func (Volume) CubicCentimeters ¶
CubicCentimeters returns the volume in cm³
func (Volume) CubicDecameters ¶
CubicDecameters returns the volume in dam³
func (Volume) CubicDecimeters ¶
CubicDecimeters returns the volume in dm³
func (Volume) CubicExameters ¶
CubicExameters returns the volume in Em³
func (Volume) CubicFemtometers ¶
CubicFemtometers returns the volume in fm³
func (Volume) CubicFurlongs ¶
CubicFurlongs returns the volume in furlong³
func (Volume) CubicGigameters ¶
CubicGigameters returns the volume in Gm³
func (Volume) CubicHectometers ¶
CubicHectometers returns the volume in hm³
func (Volume) CubicInches ¶
CubicInches returns the volume in in³
func (Volume) CubicKilometers ¶
CubicKilometers returns the volume in km³
func (Volume) CubicMegameters ¶
CubicMegameters returns the volume in Mm³
func (Volume) CubicMeters ¶
CubicMeters returns the volume in m³
func (Volume) CubicMicrometers ¶
CubicMicrometers returns the volume in µm³
func (Volume) CubicMiles ¶
CubicMiles returns the volume in mi³
func (Volume) CubicMillimeters ¶
CubicMillimeters returns the volume in mm³
func (Volume) CubicNanometers ¶
CubicNanometers returns the volume in nm³
func (Volume) CubicPetameters ¶
CubicPetameters returns the volume in Pm³
func (Volume) CubicPicometers ¶
CubicPicometers returns the volume in pm³
func (Volume) CubicTerameters ¶
CubicTerameters returns the volume in Tm³
func (Volume) CubicYards ¶
CubicYards returns the volume in yd³
func (Volume) CubicYoctometers ¶
CubicYoctometers returns the volume in ym³
func (Volume) CubicYottameters ¶
CubicYottameters returns the volume in Ym³
func (Volume) CubicZeptometers ¶
CubicZeptometers returns the volume in zm³
func (Volume) CubicZettameters ¶
CubicZettameters returns the volume in Zm³
func (Volume) Femtoliters ¶
Femtoliters returns the volume in fl
func (Volume) Hectoliters ¶
Hectoliters returns the volume in Hl
func (Volume) ImperialBushels ¶
ImperialBushels returns the volume in imperial bushels
func (Volume) ImperialCups ¶
ImperialCups returns the volume in imperial cups
func (Volume) ImperialFluidDrams ¶
ImperialFluidDrams returns the volume in imperial fluid drams
func (Volume) ImperialFluidOunces ¶
ImperialFluidOunces returns the volume in imperial fluid ounces
func (Volume) ImperialGallons ¶
ImperialGallons returns the volume in imperial gallons
func (Volume) ImperialGills ¶
ImperialGills returns the volume in imperial gills
func (Volume) ImperialPecks ¶
ImperialPecks returns the volume in imperial pecks
func (Volume) ImperialPints ¶
ImperialPints returns the volume in imperial pints
func (Volume) ImperialQuarts ¶
ImperialQuarts returns the volume in imperial quarts
func (Volume) ImperialTableSpoons ¶
ImperialTableSpoons returns the volume in metric/imperial tablespoons
func (Volume) ImperialTeaSpoons ¶
ImperialTeaSpoons returns the volume in metric/imperial teaspoons
func (Volume) MetricTableSpoons ¶
MetricTableSpoons returns the volume in metric/imperial tablespoons
func (Volume) MetricTeaSpoons ¶
MetricTeaSpoons returns the volume in metric/imperial teaspoons
func (Volume) Microliters ¶
Microliters returns the volume in µl
func (Volume) Milliliters ¶
Milliliters returns the volume in ml
func (Volume) USDryGallons ¶
USDryGallons returns the volume in US dry gallons
func (Volume) USDryPints ¶
USDryPints returns the volume in US dry pints
func (Volume) USDryQuarts ¶
USDryQuarts returns the volume in US dry quarts
func (Volume) USFluidDrams ¶
USFluidDrams returns the volume in US fluid drams
func (Volume) USFluidOunces ¶
USFluidOunces returns the volume in US fluid ounces
func (Volume) USLegalCups ¶
USLegalCups returns the volume in US legal cups
func (Volume) USLiquidGallons ¶
USLiquidGallons returns the volume in US liquid gallons
func (Volume) USLiquidPints ¶
USLiquidPints returns the volume in US liquid pints
func (Volume) USLiquidQuarts ¶
USLiquidQuarts returns the volume in US liquid quarts
func (Volume) USTableSpoons ¶
USTableSpoons returns the volume in US table spoons
func (Volume) USTeaSpoons ¶
USTeaSpoons returns the volume in US tea spoons
func (Volume) Yoctoliters ¶
Yoctoliters returns the volume in yl
func (Volume) Zettaliters ¶
Zettaliters returns the volume in Zl
Source Files ¶
- acceleration.go
- amount_of_substance.go
- angle.go
- area.go
- datarate.go
- datasize.go
- duration.go
- electric_current.go
- electrical_conductance.go
- electrical_resistance.go
- energy.go
- force.go
- frequency.go
- illuminance.go
- length.go
- luminous_flux.go
- luminous_intensity.go
- mass.go
- power.go
- pressure.go
- speed.go
- temperature.go
- unit.go
- voltage.go
- volume.go