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()

Harbour All Functions – F

Fact

Fahrenheit

FClose()
FCount()
FCreate()
FErase()
FError()
FieldBlock()

FieldDeci()

FieldGet()

FieldName()
FieldPos()
FieldPut()

FieldSize()
FieldType()

FieldWBlock()

File()
FLock()

Floor

FOpen()

Found()

FRead()
FReadStr()
FRename()
FSeek()

FToC

FV

FWrite()

CT_FAHRENHEIT

 FAHRENHEIT()
 Converts a temperature value from Celsius into Fahrenheit
------------------------------------------------------------------------------
 Syntax

     FAHRENHEIT(<nCelsius>) --> nFahrenheit

 Argument

     <nCelsius> Designates a temperature in Celsius.

 Returns

     FAHRENHEIT() returns the converted temperature in degrees Fahrenheit.

 Description

     This function converts Celsius temperatures into Fahrenheit equivalents.

 Example

     Convert the following Celsius temperatures to Fahrenheit:

     FAHRENHEIT(12.5)            // Result:  54.5
     FAHRENHEIT(125.0)           // Result:  257
     FAHRENHEIT(1250.0)          // Result:  2282
     FAHRENHEIT(-155.0)          // Result:  -247

See Also: CELSIUS()

 

Tools – Numbers/Bit Manipulation

Introduction
BITTOC()     Converts position-dependent bits into characters
CELSIUS()    Converts a Fahrenheit temperature value into Celsius
CLEARBIT()   Clears one or more bits within a number to zero
CTOBIT()     Converts a character string into a bit pattern
CTOF()       Converts a special 8-byte string into a floating point number
CTON()       Converts a numeric string into a different base
EXPONENT()   Determines the exponent of a floating point number (base 2)
FAHRENHEIT() Converts a temperature value from Celsius into Fahrenheit
FTOC()       Converts a floating point number into a special 8-byte string
INFINITY()   Creates the largest number possible (21023)
INTNEG()     Converts an unsigned integer into a signed integer
INTPOS()     Converts a signed integer into an unsigned integer
ISBIT()      Tests the bits in a number
LTON()       Converts a logical value into a numeric value
MANTISSA()   Determines the mantissa of a floating point number (base2)
NTOC()       Converts numbers in a digit string into a different number base
NUMAND()     Performs a 16-bit "AND" of a list of numbers
NUMCOUNT()   Uses the internal CA-Clipper Tools counter
NUMHIGH()    Returns the higher value byte in a 16-bit number
NUMLOW()     Returns the lower value byte in a 16-bit number
NUMMIRR()    Mirrors 8-bit or 16-bit values
NUMNOT()     Performs a 16-bit "NOT" of a number
NUMOR()      Performs a 16-bit "OR" of a list of numbers
NUMROL()     Performs a 16-bit left rotation of a number
NUMXOR()     Performs a 16-bit "XOR" of two numbers
RAND()       Generates random numbers
RANDOM()     Generates random numbers
SETBIT()     Sets one or more bits in a number