tempconv

package
v0.0.0-...-c747ff1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.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 Celsius

type Celsius float64

Celsius 摄氏度

const (
	// AbsoluteZeroC 绝对零度
	AbsoluteZeroC Celsius = -273.15

	// FreezingC 冰点
	FreezingC Celsius = 0

	// BoilingC 沸点
	BoilingC Celsius = 100
)

func FToC

func FToC(f Fahrenheit) Celsius

FToC converts a Fahrenheit temperature to Celsius.

func KToC

func KToC(k Kelvin) Celsius

KToC converts a Kelvin temperature to Celsius.

func (Celsius) String

func (c Celsius) String() string

type Fahrenheit

type Fahrenheit float64

Fahrenheit 华氏温度计

func CToF

func CToF(c Celsius) Fahrenheit

CToF converts a Celsius temperature to Fahrenheit.

func (Fahrenheit) String

func (f Fahrenheit) String() string

type Kelvin

type Kelvin float64

Kelvin Kelvin绝对温度

func (Kelvin) String

func (k Kelvin) String() string

Jump to

Keyboard shortcuts

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