Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TemperatureConverter

Temperatuurconverter class, this class will translate from Farenheid of Kelvin to Celcius.

import {TemperatureConverter} from './unitconverter'
const unitconverter = new TemperatureConverter()
unitconverter.farenheidToCelcius(temp)

Hierarchy

  • TemperatureConverter

Index

Methods

farenheidToCelcius

  • farenheidToCelcius(temp: number): number
  • This will translate from Farenheid to Celcius

    Parameters

    • temp: number

      This is the temperature you want to convert

    Returns number

    The translated temperature in °F

kelvinToCelcius

  • kelvinToCelcius(temp: number): number
  • This will translate from Kelvin to Celcius

    Parameters

    • temp: number

      This is the temperature you want to convert

    Returns number

    The translated temperature in K

Generated using TypeDoc