ConversionUtil

Kind of class:public class
Package:org.casalib.util
Inherits from:none
Version:03/11/08
Author:Aaron Clinger, David Bliss, David Nelson
Classpath:org.casalib.util.ConversionUtil
File last modified:Wednesday, 31 December 2008, 20:18:28
Utilities for converting units.

Summary


Class methods

Class methods

bitsToBytes

public static function bitsToBytes (
bits:Number) : Number

Converts bits to bytes.
Parameters:
bits:
The number of bits.
Returns:
  • Returns the number of bytes.

bitsToKilobits

public static function bitsToKilobits (
bits:Number) : Number

Converts bits to kilobits.
Parameters:
bits:
The number of bits.
Returns:
  • Returns the number of kilobits.

bitsToKilobytes

public static function bitsToKilobytes (
bits:Number) : Number

Converts bits to kilobytes.
Parameters:
bits:
The number of bits.
Returns:
  • Returns the number of kilobits.

bytesToBits

public static function bytesToBits (
bytes:Number) : Number

Converts bytes to bits.
Parameters:
bytes:
The number of bytes.
Returns:
  • Returns the number of bits.

bytesToKilobits

public static function bytesToKilobits (
bytes:Number) : Number

Converts bytes to kilobits.
Parameters:
bytes:
The number of bytes.
Returns:
  • Returns the number of kilobits.

bytesToKilobytes

public static function bytesToKilobytes (
bytes:Number) : Number

Converts bytes to kilobytes.
Parameters:
bytes:
The number of bytes.
Returns:
  • Returns the number of kilobytes.

daysToHours

public static function daysToHours (
days:Number) : Number

Converts days to hours.
Parameters:
days:
The number of days.
Returns:
  • Returns the number of hours.

daysToMilliseconds

public static function daysToMilliseconds (
days:Number) : Number

Converts days to milliseconds.
Parameters:
days:
The number of days.
Returns:
  • Returns the number of milliseconds.

daysToMinutes

public static function daysToMinutes (
days:Number) : Number

Converts days to minutes.
Parameters:
days:
The number of days.
Returns:
  • Returns the number of minutes.

daysToSeconds

public static function daysToSeconds (
days:Number) : Number

Converts days to seconds.
Parameters:
days:
The number of days.
Returns:
  • Returns the number of seconds.

degreesToRadians

public static function degreesToRadians (
degrees:Number) : Number

Converts degrees to radians.
Parameters:
degrees:
The number of degrees.
Returns:
  • Returns the number of radians.

hoursToDays

public static function hoursToDays (
hours:Number) : Number

Converts hours to days.
Parameters:
hours:
The number of hours.
Returns:
  • Returns the number of days.

hoursToMilliseconds

public static function hoursToMilliseconds (
hours:Number) : Number

Converts hours to milliseconds.
Parameters:
hours:
The number of hours.
Returns:
  • Returns the number of milliseconds.

hoursToMinutes

public static function hoursToMinutes (
hours:Number) : Number

Converts hours to minutes.
Parameters:
hours:
The number of hours.
Returns:
  • Returns the number of minutes.

hoursToSeconds

public static function hoursToSeconds (
hours:Number) : Number

Converts hours to seconds.
Parameters:
hours:
The number of hours.
Returns:
  • Returns the number of seconds.

kilobitsToBits

public static function kilobitsToBits (
kilobits:Number) : Number

Converts kilobits to bits.
Parameters:
kilobits:
The number of kilobits.
Returns:
  • Returns the number of bits.

kilobitsToBytes

public static function kilobitsToBytes (
kilobits:Number) : Number

Converts kilobits to bytes.
Parameters:
kilobits:
The number of kilobits.
Returns:
  • Returns the number of bytes.

kilobitsToKilobytes

public static function kilobitsToKilobytes (
kilobits:Number) : Number

Converts kilobits to kilobytes.
Parameters:
kilobytes:
The number of kilobits.
Returns:
  • Returns the number of kilobytes.

kilobytesToBits

public static function kilobytesToBits (
kilobytes:Number) : Number

Converts kilobytes to bits.
Parameters:
kilobytes:
The number of kilobytes.
Returns:
  • Returns the number of bits.

kilobytesToBytes

public static function kilobytesToBytes (
kilobytes:Number) : Number

Converts kilobytes to bytes.
Parameters:
kilobytes:
The number of kilobytes.
Returns:
  • Returns the number of bytes.

kilobytesToKilobits

public static function kilobytesToKilobits (
kilobytes:Number) : Number

Converts kilobytes to kilobits.
Parameters:
kilobytes:
The number of kilobytes.
Returns:
  • Returns the number of kilobits.

millisecondsToDays

public static function millisecondsToDays (
milliseconds:Number) : Number

Converts milliseconds to days.
Parameters:
milliseconds:
The number of milliseconds.
Returns:
  • Returns the number of days.

millisecondsToHours

public static function millisecondsToHours (
milliseconds:Number) : Number

Converts milliseconds to hours.
Parameters:
milliseconds:
The number of milliseconds.
Returns:
  • Returns the number of hours.

millisecondsToMinutes

public static function millisecondsToMinutes (
milliseconds:Number) : Number

Converts milliseconds to minutes.
Parameters:
milliseconds:
The number of milliseconds.
Returns:
  • Returns the number of minutes.

millisecondsToSeconds

public static function millisecondsToSeconds (
milliseconds:Number) : Number

Converts milliseconds to seconds.
Parameters:
milliseconds:
The number of milliseconds.
Returns:
  • Returns the number of seconds.

minutesToDays

public static function minutesToDays (
minutes:Number) : Number

Converts minutes to days.
Parameters:
minutes:
The number of minutes.
Returns:
  • Returns the number of days.

minutesToHours

public static function minutesToHours (
minutes:Number) : Number

Converts minutes to hours.
Parameters:
minutes:
The number of minutes.
Returns:
  • Returns the number of hours.

minutesToMilliseconds

public static function minutesToMilliseconds (
minutes:Number) : Number

Converts minutes to milliseconds.
Parameters:
minutes:
The number of minutes.
Returns:
  • Returns the number of milliseconds.

minutesToSeconds

public static function minutesToSeconds (
minutes:Number) : Number

Converts minutes to seconds.
Parameters:
minutes:
The number of minutes.
Returns:
  • Returns the number of seconds.

radiansToDegrees

public static function radiansToDegrees (
radians:Number) : Number

Converts radians to degrees.
Parameters:
radians:
The number of radians.
Returns:
  • Returns the number of degrees.

secondsToDays

public static function secondsToDays (
seconds:Number) : Number

Converts seconds to days.
Parameters:
seconds:
The number of seconds.
Returns:
  • Returns the number of days.

secondsToHours

public static function secondsToHours (
seconds:Number) : Number

Converts seconds to hours.
Parameters:
seconds:
The number of seconds.
Returns:
  • Returns the number of hours.

secondsToMilliseconds

public static function secondsToMilliseconds (
seconds:Number) : Number

Converts seconds to milliseconds.
Parameters:
seconds:
The number of seconds.
Returns:
  • Returns the number of milliseconds.

secondsToMinutes

public static function secondsToMinutes (
seconds:Number) : Number

Converts seconds to minutes.
Parameters:
seconds:
The number of seconds.
Returns:
  • Returns the number of minutes.