Celsius()

CELSIUS()

Temperature conversion Fahrenheit to Celsius

Syntax

      CELSIUS( nDegreeFahrenheit ) --> nDegreeCelsius

Arguments

<nDegreeFahrenheit> temperature in degree Fahrenheit

Returns

<nDegreeCelsius> temperate in degree Celsius

Description

CELSIUS() converts temperature values measured in the Fahrenheit scale to the Celsius scale.

Examples

      // melting point of water in standard conditions
      ? celsius( 32.0 )      // --> 0.0
      // boiling point of water in standard conditions
      ? celsius( 212.0 )     // --> 100.0

Tests

      celsius( 32.0 )  == 0.0
      celsius( 212.0 ) == 100.0

Compliance

CELSIUS() is compatible with CT3’s CELSIUS().

Platforms

All

Files

Source is num1.c, library is libct.

Seealso

FAHRENHEIT()

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s