# NSUnit documentation

greg.casamento@gmail.com
Generated at 2025-09-10 09:16:48 +0000
2019 Free Software Foundation, Inc.
Software documentation for the NSDimension class
Foundation/NSUnit.h
NSCoding
Dimension using units....
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
baseUnit
Return a base unit.
converter
The NSUnitConverter instance used for this NSDimension object.
initWithSymbol:
symbol
converter:
converter
Initialize with symbol and an NSUnitConverter.
Software documentation for the NSUnit class
Foundation/NSUnit.h
NSCopying
NSCoding
Units... abstract...
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
init
Initialize an NSUnit instance.
initWithSymbol:
symbol
Initialize NSUnit with a given symbol .
symbol
The symbol used by a given unit.
Software documentation for the NSUnitAcceleration class
Foundation/NSUnit.h
Units of accelleration. Base unit - metersPerSecondSquared
gravity
Units of accelleration equal to the gravitational constant.
metersPerSecondSquared
Units of accelleration in meters per second squared.
Software documentation for the NSUnitAngle class
Foundation/NSUnit.h
Angle units. Base unit - degrees
arcMinutes
Units of angle in arc minutes.
arcSeconds
Units of angle arc seconds.
degrees
Units of angle in degrees.
gradians
Units of area in square megameters.
radians
Units of angle in radians.
revolutions
Units of area in square megameters.
Software documentation for the NSUnitArea class
Foundation/NSUnit.h
Units of area. Base unit - squareMeters
acres
Units of area in acres/
ares
Units of area in ares.
hectares
Units of area in hectares.
squareCentimeters
Units of area in square centimeters.
squareFeet
Units of area in square feet.
squareInches
Units of area in square inches.
squareKilometers
Units of area in square kilometers.
squareMegameters
Units of area in square megameters.
squareMeters
Units of area in square meters.
squareMicrometers
Units of area in square micrometers.
squareMiles
Units of area in square miles.
squareMillimeters
Units of area in square millimeters.
squareNanometers
Units of area in square nanometers.
squareYards
Units of area in square yards.
Software documentation for the NSUnitConcentrationMass class
Foundation/NSUnit.h
Units of concentration. Base unit - gramsPerLiter.
gramsPerLiter
Concentration units in grams per liter.
milligramsPerDeciliter
Concentration units in milligrams per deciliter.
millimolesPerLiterWithGramsPerMole:
gramsPerMole
Concentration units in grams per mole.
Software documentation for the NSUnitConverter class
Foundation/NSUnit.h
Unit converter. This is an abstract class.
baseUnitValueFromValue:
value
For a given unit, returns the specified value of that unit based on the units dimension.
valueFromBaseUnitValue:
baseUnitValue
For a unit, returns the specified value of the base unit in terms of that unit.
Software documentation for the NSUnitConverterLinear class
Foundation/NSUnit.h
NSCoding
Linear converter... for things like C to F conversion...
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
coefficient
Return the coefficient.
constant
Return the constant.
initWithCoefficient:
coefficient
Initialize with the coefficient.
initWithCoefficient:
coefficient
constant:
constant
Initialize with the coefficient and constant.
Software documentation for the NSUnitDispersion class
Foundation/NSUnit.h
Units of dispersion. Base unit - partsPerMillion
partsPerMillion
Units of dispersion in parts per million.
Software documentation for the NSUnitDuration class
Foundation/NSUnit.h
Units of duration. Base unit - seconds
hours
Units of duration in hours.
minutes
Units of duration in minutes.
seconds
Units of duration in seconds.
Software documentation for the NSUnitElectricCharge class
Foundation/NSUnit.h
Units of electric charge. Base unit - coulombs
ampereHours
The units of eletric charge in ampere hours.
coulombs
The units of eletric charge in coulombs.
kiloampereHours
The units of eletric charge in kiloampere hours.
megaampereHours
The units of eletric charge in megaampere hours.
microampereHours
The units of eletric charge in microampere hours.
milliampereHours
The units of eletric charge in milliampere hours.
Software documentation for the NSUnitElectricCurrent class
Foundation/NSUnit.h
Units of electric current. Base unit - amperes
amperes
The units of eletric current in amperes.
kiloamperes
The units of eletric current in kiloamperes.
megaamperes
The units of eletric current in megaamperes.
microamperes
The units of eletric current in microamperes.
milliamperes
The units of eletric current in milliamperes.
Software documentation for the NSUnitElectricPotentialDifference class
Foundation/NSUnit.h
Units of electric potential. Base unit - volts
kilovolts
The units of eletric potential in kilovolts.
megavolts
The units of eletric potential in megavolts.
microvolts
The units of eletric potential in microvolts.
millivolts
The units of eletric potential in millivolts.
volts
The units of eletric potential in volts.
Software documentation for the NSUnitElectricResistance class
Foundation/NSUnit.h
Units of electric resistance. Base unit - ohms
kiloohms
The units of eletric resistance in kiloohms.
megaohms
The units of eletric resistance in megaohms.
microohms
The units of eletric resistance in microohms.
milliohms
The units of eletric resistance in milliohms.
ohms
The units of eletric resistance in ohms.
Software documentation for the NSUnitEnergy class
Foundation/NSUnit.h
Units of Energy. Base unit - joules
calories
The units of energy in calories.
joules
The units of energy in joules.
kilocalories
The units of energy in kilocalories.
kilojoules
The units of energy in kilojoules.
kilowattHours
The units of energy in kilawatt hours.
Software documentation for the NSUnitFrequency class
Foundation/NSUnit.h
Units of frequency. Base unit - hertz
gigahertz
The units of frequency in gigahertz.
hertz
The units of frequency in hertz.
kilohertz
The units of frequency in kilohertz.
megahertz
The units of frequency in megahertz.
microhertz
The units of frequency in microhertz.
millihertz
The units of frequency in millihertz.
nanohertz
The units of frequency in nanohertz.
terahertz
The units of frequency in terahertz.
Software documentation for the NSUnitFuelEfficiency class
Foundation/NSUnit.h
Units of fuel efficiency. Base unit - litersPer100Kilometers
litersPer100Kilometers
The units of fuel efficiency in liters per 100 kilometers.
milesPerGallon
The units of fuel efficiency in miles per gallon.
milesPerImperialGallon
The units of fuel efficiency in miles per imperial gallon.
Software documentation for the NSUnitIlluminance class
Foundation/NSUnit.h
Units of illumination. Base unit - lux
lux
The units of illuminance in lux.
Software documentation for the NSUnitLength class
Foundation/NSUnit.h
Units of length. Base unit - meters
astronomicalUnits
The units of length in astronomical units.
centimeters
The units of length in centimeters.
decameters
The units of length in decameters.
decimeters
The units of length in decimeters.
fathoms
The units of length in fathoms.
feet
The units of length in feet.
furlongs
The units of length in furlongs.
hectometers
The units of length in hectometers.
inches
The units of length in inches.
kilometers
The units of length in kilometers.
lightyears
The units of length in light years.
megameters
The units of length in megameters.
meters
The units of length in meters.
micrometers
The units of length in micrometers.
miles
The units of length in miles.
millimeters
The units of length in millimeters.
nanometers
The units of length in nanometers.
nauticalMiles
The units of length in nautical miles.
parsecs
The units of length in parsecs.
picometers
The units of length in picometers.
scandinavianMiles
The units of length in scandanavian miles.
yards
The units of length in yards.
Software documentation for the NSUnitMass class
Foundation/NSUnit.h
Units of mass. Base unit - kilograms
carats
The mass units in carats.
centigrams
The mass units in centigrams.
decigrams
The mass units in decigrams.
grams
The mass units in grams.
kilograms
The mass units in kilograms.
metricTons
The mass units in metric tons.
micrograms
The mass units in micrograms.
milligrams
The mass units in milligrams.
nanograms
The mass units in nanograms.
ounces
The mass units in ounces.
ouncesTroy
The mass units in ounces troy.
picograms
The mass units in picograms.
pounds
The mass units in pounds.
shortTons
The mass units in short tons.
slugs
The mass units in slugs.
stones
The mass units in stones.
Software documentation for the NSUnitPower class
Foundation/NSUnit.h
Used to represent power. Base unit - watts
femtowatts
The power units in femtowatts.
gigawatts
The power units in gigawatts.
horsepower
The power units in horsepower.
kilowatts
The power units in kilowatts.
megawatts
The power units in megawatts.
microwatts
The power units in microwatts.
milliwatts
The power units in milliwatts.
nanowatts
The power units in nanowatts.
picowatts
The power units in picowatts.
terawatts
The power units in terawatts.
watts
The power units in watts.
Software documentation for the NSUnitPressure class
Foundation/NSUnit.h
Used to represent pressure. Base unit - newtonsPerMetersSquared (equivalent to 1 pascal)
bars
The bars unit of pressure.
gigapascals
The gigapascals unit of pressure.
hectopascals
The hetcopascals unit of pressure.
inchesOfMercury
The inches of mercury unit of pressure.
kilopascals
The kilopascals unit of pressure.
megapascals
The megapascals unit of pressure.
millibars
The millibars unit of pressure.
millimetersOfMercury
The millimeters of mercury of pressure.
newtonsPerMetersSquared
The newtons per meters squared unit of pressure.
poundsForcePerSquareInch
The pounds of per square inch of pressure.
Software documentation for the NSUnitSpeed class
Foundation/NSUnit.h
Used to represent speed. Base unit is meters per second.
kilometersPerHour
The kilometers per hour measurement of speed.
knots
The knots measurement of speed.
metersPerSecond
The meters per second measurement of speed.
milesPerHour
The miles per hour measurement of speed.
Software documentation for the NSUnitTemperature class
Foundation/NSUnit.h
Used to represent temperature quantities. The base unit of this class is kelvin.
celsius
The kelvin unit of celsius.
fahrenheit
The kelvin unit of fahenheit.
kelvin
The kelvin unit of temperature.
Software documentation for the NSUnitVolume class
Foundation/NSUnit.h
Typically this is used to represent specific quantities. The base unit of this class is liters.
acreFeet
The acre feet unit of volume.
bushels
The bushels unit of volume.
centiliters
The centiliters unit of volume.
cubicCentimeters
The cubic centimeteres unit of volume.
cubicDecimeters
The cubic decimeters unit of volume.
cubicFeet
The cubic feet unit of volume.
cubicInches
The cubic inches unit of volume.
cubicKilometers
The cubic kilometers unit of volume.
cubicMeters
The cubic meters unit of volume.
cubicMiles
The cubic miles unit of volume.
cubicMillimeters
The cubic millimeters unit of volume.
cubicYards
The cubic yards unit of volume.
cups
The cups unit of volume.
deciliters
The deciliters unit of volume.
fluidOunces
The fluid ounces unit of volume.
gallons
The gallons unit of volume.
imperialFluidOunces
The imperial fluid ounces unit of volume.
imperialGallons
The imperial gallons unit of volume.
imperialPints
The imperial pints unit of volume.
imperialQuarts
The imperial quarts unit of volume.
imperialTablespoons
The imperial tablespoons unit of volume.
imperialTeaspoons
The imperial teaspoons unit of volume.
kiloliters
The kiloliters unit of volume.
liters
The liters unit of volume.
megaliters
The megaliters unit of volume.
metricCups
The metric cups unit of volume.
milliliters
The milliliters unit of volume.
pints
The pints unit of volume.
quarts
The quarts unit of volume.
tablespoons
The tablespoons unit of volume.
teaspoons
The teaspoons unit of volume.