tempconv0

package
v0.0.0-...-5afa7de Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package tempconv performs Celsius and Fahrenheit temperature computations.

Package tempconv performs Celsius and Fahrenheit temperature computations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Celsius

type Celsius float64 //摄氏度
const (
	AbsoluteZeroC Celsius = -273.15 //绝对零度
	FreezingC     Celsius = 0       //冰点温度
	BoilingC      Celsius = 100     //水沸腾温度
)

func FToC

func FToC(f Fahrenheit) Celsius

func KToC

func KToC(k Kelvin) Celsius

func (Celsius) String

func (c Celsius) String() string

为类型 Celsius 定义 String() 方法

type Fahrenheit

type Fahrenheit float64 //华氏度

func CToF

func CToF(c Celsius) Fahrenheit

func (Fahrenheit) String

func (f Fahrenheit) String() string

type Kelvin

type Kelvin float64 //开尔文

func CToK

func CToK(c Celsius) 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