Skip to content

Instantly share code, notes, and snippets.

@jgphilpott
Last active May 18, 2023 14:38
Show Gist options
  • Save jgphilpott/4631fbcdbf42a612e46314b13d7bbc57 to your computer and use it in GitHub Desktop.
Save jgphilpott/4631fbcdbf42a612e46314b13d7bbc57 to your computer and use it in GitHub Desktop.
A collection of functions for converting between different units of density.
### Density Conversions ###
convertDensity =
gramCentimeterCu: {}
gramMeterCu: {}
kilogramCentimeterCu: {}
kilogramMeterCu: {}
ounceInchCu: {}
ounceFootCu: {}
poundInchCu: {}
poundFootCu: {}
### Gram per Centimeter Cubed Conversions ###
convertDensity.gramCentimeterCu.gramCentimeterCu = gCmCu$gCmCu = (gCmCu) -> gCmCu # Gram per Centimeter Cubed to Gram per Centimeter Cubed
convertDensity.gramCentimeterCu.gramMeterCu = gCmCu$gMCu = (gCmCu) -> gCmCu * 1e+6 # Gram per Centimeter Cubed to Gram per Meter Cubed
convertDensity.gramCentimeterCu.kilogramCentimeterCu = gCmCu$kgCmCu = (gCmCu) -> gCmCu / 1e+3 # Gram per Centimeter Cubed to Kilogram per Centimeter Cubed
convertDensity.gramCentimeterCu.kilogramMeterCu = gCmCu$kgMCu = (gCmCu) -> gCmCu * 1e+3 # Gram per Centimeter Cubed to Kilogram per Meter Cubed
convertDensity.gramCentimeterCu.ounceInchCu = gCmCu$ozInchCu = (gCmCu) -> gCmCu / 1.73 # Gram per Centimeter Cubed to Ounce per Inch Cubed
convertDensity.gramCentimeterCu.ounceFootCu = gCmCu$ozFootCu = (gCmCu) -> gCmCu * 998.8 # Gram per Centimeter Cubed to Ounce per Foot Cubed
convertDensity.gramCentimeterCu.poundInchCu = gCmCu$lbInchCu = (gCmCu) -> gCmCu / 27.68 # Gram per Centimeter Cubed to Pound per Inch Cubed
convertDensity.gramCentimeterCu.poundFootCu = gCmCu$lbFootCu = (gCmCu) -> gCmCu * 62.43 # Gram per Centimeter Cubed to Pound per Foot Cubed
### Gram per Meter Cubed Conversions ###
convertDensity.gramMeterCu.gramCentimeterCu = gMCu$gCmCu = (gMCu) -> gMCu / 1e+6 # Gram per Meter Cubed to Gram per Centimeter Cubed
convertDensity.gramMeterCu.gramMeterCu = gMCu$gMCu = (gMCu) -> gMCu # Gram per Meter Cubed to Gram per Meter Cubed
convertDensity.gramMeterCu.kilogramCentimeterCu = gMCu$kgCmCu = (gMCu) -> gMCu / 1e+9 # Gram per Meter Cubed to Kilogram per Centimeter Cubed
convertDensity.gramMeterCu.kilogramMeterCu = gMCu$kgMCu = (gMCu) -> gMCu / 1e+3 # Gram per Meter Cubed to Kilogram per Meter Cubed
convertDensity.gramMeterCu.ounceInchCu = gMCu$ozInchCu = (gMCu) -> gMCu / 173e+4 # Gram per Meter Cubed to Ounce per Inch Cubed
convertDensity.gramMeterCu.ounceFootCu = gMCu$ozFootCu = (gMCu) -> gMCu / 1001 # Gram per Meter Cubed to Ounce per Foot Cubed
convertDensity.gramMeterCu.poundInchCu = gMCu$lbInchCu = (gMCu) -> gMCu / 2768e+4 # Gram per Meter Cubed to Pound per Inch Cubed
convertDensity.gramMeterCu.poundFootCu = gMCu$lbFootCu = (gMCu) -> gMCu / 1602e+1 # Gram per Meter Cubed to Pound per Foot Cubed
### Kilogram per Centimeter Cubed Conversions ###
convertDensity.kilogramCentimeterCu.gramCentimeterCu = kgCmCu$gCmCu = (kgCmCu) -> kgCmCu * 1e+3 # Kilogram per Centimeter Cubed to Gram per Centimeter Cubed
convertDensity.kilogramCentimeterCu.gramMeterCu = kgCmCu$gMCu = (kgCmCu) -> kgCmCu * 1e+9 # Kilogram per Centimeter Cubed to Gram per Meter Cubed
convertDensity.kilogramCentimeterCu.kilogramCentimeterCu = kgCmCu$kgCmCu = (kgCmCu) -> kgCmCu # Kilogram per Centimeter Cubed to Kilogram per Centimeter Cubed
convertDensity.kilogramCentimeterCu.kilogramMeterCu = kgCmCu$kgMCu = (kgCmCu) -> kgCmCu * 1e+6 # Kilogram per Centimeter Cubed to Kilogram per Meter Cubed
convertDensity.kilogramCentimeterCu.ounceInchCu = kgCmCu$ozInchCu = (kgCmCu) -> kgCmCu * 578 # Kilogram per Centimeter Cubed to Ounce per Inch Cubed
convertDensity.kilogramCentimeterCu.ounceFootCu = kgCmCu$ozFootCu = (kgCmCu) -> kgCmCu * 9988e+2 # Kilogram per Centimeter Cubed to Ounce per Foot Cubed
convertDensity.kilogramCentimeterCu.poundInchCu = kgCmCu$lbInchCu = (kgCmCu) -> kgCmCu * 36.13 # Kilogram per Centimeter Cubed to Pound per Inch Cubed
convertDensity.kilogramCentimeterCu.poundFootCu = kgCmCu$lbFootCu = (kgCmCu) -> kgCmCu * 6243e+1 # Kilogram per Centimeter Cubed to Pound per Foot Cubed
### Kilogram per Meter Cubed Conversions ###
convertDensity.kilogramMeterCu.gramCentimeterCu = kgMCu$gCmCu = (kgMCu) -> kgMCu / 1e+3 # Kilogram per Meter Cubed to Gram per Centimeter Cubed
convertDensity.kilogramMeterCu.gramMeterCu = kgMCu$gMCu = (kgMCu) -> kgMCu * 1e+3 # Kilogram per Meter Cubed to Gram per Meter Cubed
convertDensity.kilogramMeterCu.kilogramCentimeterCu = kgMCu$kgCmCu = (kgMCu) -> kgMCu / 1e+6# Kilogram per Meter Cubed to Kilogram per Centimeter Cubed
convertDensity.kilogramMeterCu.kilogramMeterCu = kgMCu$kgMCu = (kgMCu) -> kgMCu # Kilogram per Meter Cubed to Kilogram per Meter Cubed
convertDensity.kilogramMeterCu.ounceInchCu = kgMCu$ozInchCu = (kgMCu) -> kgMCu / 173e+1 # Kilogram per Meter Cubed to Ounce per Inch Cubed
convertDensity.kilogramMeterCu.ounceFootCu = kgMCu$ozFootCu = (kgMCu) -> kgMCu / 1.001 # Kilogram per Meter Cubed to Ounce per Foot Cubed
convertDensity.kilogramMeterCu.poundInchCu = kgMCu$lbInchCu = (kgMCu) -> kgMCu / 2768e+1 # Kilogram per Meter Cubed to Pound per Inch Cubed
convertDensity.kilogramMeterCu.poundFootCu = kgMCu$lbFootCu = (kgMCu) -> kgMCu / 16.02 # Kilogram per Meter Cubed to Pound per Foot Cubed
### Ounce per Inch Cubed Conversions ###
convertDensity.ounceInchCu.gramCentimeterCu = ozInchCu$gCmCu = (ozInchCu) -> ozInchCu * 1.73 # Ounce per Inch Cubed to Gram per Centimeter Cubed
convertDensity.ounceInchCu.gramMeterCu = ozInchCu$gMCu = (ozInchCu) -> ozInchCu * 173e+4 # Ounce per Inch Cubed to Gram per Meter Cubed
convertDensity.ounceInchCu.kilogramCentimeterCu = ozInchCu$kgCmCu = (ozInchCu) -> ozInchCu / 578 # Ounce per Inch Cubed to Kilogram per Centimeter Cubed
convertDensity.ounceInchCu.kilogramMeterCu = ozInchCu$kgMCu = (ozInchCu) -> ozInchCu * 173e+1 # Ounce per Inch Cubed to Kilogram per Meter Cubed
convertDensity.ounceInchCu.ounceInchCu = ozInchCu$ozInchCu = (ozInchCu) -> ozInchCu # Ounce per Inch Cubed to Ounce per Inch Cubed
convertDensity.ounceInchCu.ounceFootCu = ozInchCu$ozFootCu = (ozInchCu) -> ozInchCu * 1728 # Ounce per Inch Cubed to Ounce per Foot Cubed
convertDensity.ounceInchCu.poundInchCu = ozInchCu$lbInchCu = (ozInchCu) -> ozInchCu / 16 # Ounce per Inch Cubed to Pound per Inch Cubed
convertDensity.ounceInchCu.poundFootCu = ozInchCu$lbFootCu = (ozInchCu) -> ozInchCu * 108 # Ounce per Inch Cubed to Pound per Foot Cubed
### Ounce per Foot Cubed Conversions ###
convertDensity.ounceFootCu.gramCentimeterCu = ozFootCu$gCmCu = (ozFootCu) -> ozFootCu / 998.8 # Ounce per Foot Cubed to Gram per Centimeter Cubed
convertDensity.ounceFootCu.gramMeterCu = ozFootCu$gMCu = (ozFootCu) -> ozFootCu * 1001 # Ounce per Foot Cubed to Gram per Meter Cubed
convertDensity.ounceFootCu.kilogramCentimeterCu = ozFootCu$kgCmCu = (ozFootCu) -> ozFootCu / 9988e+2 # Ounce per Foot Cubed to Kilogram per Centimeter Cubed
convertDensity.ounceFootCu.kilogramMeterCu = ozFootCu$kgMCu = (ozFootCu) -> ozFootCu * 1.001 # Ounce per Foot Cubed to Kilogram per Meter Cubed
convertDensity.ounceFootCu.ounceInchCu = ozFootCu$ozInchCu = (ozFootCu) -> ozFootCu / 1728 # Ounce per Foot Cubed to Ounce per Inch Cubed
convertDensity.ounceFootCu.ounceFootCu = ozFootCu$ozFootCu = (ozFootCu) -> ozFootCu # Ounce per Foot Cubed to Ounce per Foot Cubed
convertDensity.ounceFootCu.poundInchCu = ozFootCu$lbInchCu = (ozFootCu) -> ozFootCu / 2765e+1 # Ounce per Foot Cubed to Pound per Inch Cubed
convertDensity.ounceFootCu.poundFootCu = ozFootCu$lbFootCu = (ozFootCu) -> ozFootCu / 16 # Ounce per Foot Cubed to Pound per Foot Cubed
### Pound per Inch Cubed Conversions ###
convertDensity.poundInchCu.gramCentimeterCu = lbInchCu$gCmCu = (lbInchCu) -> lbInchCu * 27.68 # Pound per Inch Cubed to Gram per Centimeter Cubed
convertDensity.poundInchCu.gramMeterCu = lbInchCu$gMCu = (lbInchCu) -> lbInchCu * 2768e+4 # Pound per Inch Cubed to Gram per Meter Cubed
convertDensity.poundInchCu.kilogramCentimeterCu = lbInchCu$kgCmCu = (lbInchCu) -> lbInchCu / 36.13 # Pound per Inch Cubed to Kilogram per Centimeter Cubed
convertDensity.poundInchCu.kilogramMeterCu = lbInchCu$kgMCu = (lbInchCu) -> lbInchCu * 2768e+1 # Pound per Inch Cubed to Kilogram per Meter Cubed
convertDensity.poundInchCu.ounceInchCu = lbInchCu$ozInchCu = (lbInchCu) -> lbInchCu * 16 # Pound per Inch Cubed to Ounce per Inch Cubed
convertDensity.poundInchCu.ounceFootCu = lbInchCu$ozFootCu = (lbInchCu) -> lbInchCu * 2765e+1 # Pound per Inch Cubed to Ounce per Foot Cubed
convertDensity.poundInchCu.poundInchCu = lbInchCu$lbInchCu = (lbInchCu) -> lbInchCu # Pound per Inch Cubed to Pound per Inch Cubed
convertDensity.poundInchCu.poundFootCu = lbInchCu$lbFootCu = (lbInchCu) -> lbInchCu * 1728 # Pound per Inch Cubed to Pound per Foot Cubed
### Pound per Foot Cubed Conversions ###
convertDensity.poundFootCu.gramCentimeterCu = lbFootCu$gCmCu = (lbFootCu) -> lbFootCu / 62.43 # Pound per Foot Cubed to Gram per Centimeter Cubed
convertDensity.poundFootCu.gramMeterCu = lbFootCu$gMCu = (lbFootCu) -> lbFootCu * 1602e+1 # Pound per Foot Cubed to Gram per Meter Cubed
convertDensity.poundFootCu.kilogramCentimeterCu = lbFootCu$kgCmCu = (lbFootCu) -> lbFootCu / 6243e+1 # Pound per Foot Cubed to Kilogram per Centimeter Cubed
convertDensity.poundFootCu.kilogramMeterCu = lbFootCu$kgMCu = (lbFootCu) -> lbFootCu * 16.02 # Pound per Foot Cubed to Kilogram per Meter Cubed
convertDensity.poundFootCu.ounceInchCu = lbFootCu$ozInchCu = (lbFootCu) -> lbFootCu / 108 # Pound per Foot Cubed to Ounce per Inch Cubed
convertDensity.poundFootCu.ounceFootCu = lbFootCu$ozFootCu = (lbFootCu) -> lbFootCu * 16 # Pound per Foot Cubed to Ounce per Foot Cubed
convertDensity.poundFootCu.poundInchCu = lbFootCu$lbInchCu = (lbFootCu) -> lbFootCu / 1728 # Pound per Foot Cubed to Pound per Inch Cubed
convertDensity.poundFootCu.poundFootCu = lbFootCu$lbFootCu = (lbFootCu) -> lbFootCu # Pound per Foot Cubed to Pound per Foot Cubed
/* Density Conversions */
var convertDensity, gCmCu$gCmCu, gCmCu$gMCu, gCmCu$kgCmCu, gCmCu$kgMCu, gCmCu$lbFootCu, gCmCu$lbInchCu, gCmCu$ozFootCu, gCmCu$ozInchCu, gMCu$gCmCu, gMCu$gMCu, gMCu$kgCmCu, gMCu$kgMCu, gMCu$lbFootCu, gMCu$lbInchCu, gMCu$ozFootCu, gMCu$ozInchCu, kgCmCu$gCmCu, kgCmCu$gMCu, kgCmCu$kgCmCu, kgCmCu$kgMCu, kgCmCu$lbFootCu, kgCmCu$lbInchCu, kgCmCu$ozFootCu, kgCmCu$ozInchCu, kgMCu$gCmCu, kgMCu$gMCu, kgMCu$kgCmCu, kgMCu$kgMCu, kgMCu$lbFootCu, kgMCu$lbInchCu, kgMCu$ozFootCu, kgMCu$ozInchCu, lbFootCu$gCmCu, lbFootCu$gMCu, lbFootCu$kgCmCu, lbFootCu$kgMCu, lbFootCu$lbFootCu, lbFootCu$lbInchCu, lbFootCu$ozFootCu, lbFootCu$ozInchCu, lbInchCu$gCmCu, lbInchCu$gMCu, lbInchCu$kgCmCu, lbInchCu$kgMCu, lbInchCu$lbFootCu, lbInchCu$lbInchCu, lbInchCu$ozFootCu, lbInchCu$ozInchCu, ozFootCu$gCmCu, ozFootCu$gMCu, ozFootCu$kgCmCu, ozFootCu$kgMCu, ozFootCu$lbFootCu, ozFootCu$lbInchCu, ozFootCu$ozFootCu, ozFootCu$ozInchCu, ozInchCu$gCmCu, ozInchCu$gMCu, ozInchCu$kgCmCu, ozInchCu$kgMCu, ozInchCu$lbFootCu, ozInchCu$lbInchCu, ozInchCu$ozFootCu, ozInchCu$ozInchCu;
convertDensity = {
gramCentimeterCu: {},
gramMeterCu: {},
kilogramCentimeterCu: {},
kilogramMeterCu: {},
ounceInchCu: {},
ounceFootCu: {},
poundInchCu: {},
poundFootCu: {}
};
/* Gram per Centimeter Cubed Conversions */
convertDensity.gramCentimeterCu.gramCentimeterCu = gCmCu$gCmCu = function(gCmCu) {
return gCmCu; // Gram per Centimeter Cubed to Gram per Centimeter Cubed
};
convertDensity.gramCentimeterCu.gramMeterCu = gCmCu$gMCu = function(gCmCu) {
return gCmCu * 1e+6; // Gram per Centimeter Cubed to Gram per Meter Cubed
};
convertDensity.gramCentimeterCu.kilogramCentimeterCu = gCmCu$kgCmCu = function(gCmCu) {
return gCmCu / 1e+3; // Gram per Centimeter Cubed to Kilogram per Centimeter Cubed
};
convertDensity.gramCentimeterCu.kilogramMeterCu = gCmCu$kgMCu = function(gCmCu) {
return gCmCu * 1e+3; // Gram per Centimeter Cubed to Kilogram per Meter Cubed
};
convertDensity.gramCentimeterCu.ounceInchCu = gCmCu$ozInchCu = function(gCmCu) {
return gCmCu / 1.73; // Gram per Centimeter Cubed to Ounce per Inch Cubed
};
convertDensity.gramCentimeterCu.ounceFootCu = gCmCu$ozFootCu = function(gCmCu) {
return gCmCu * 998.8; // Gram per Centimeter Cubed to Ounce per Foot Cubed
};
convertDensity.gramCentimeterCu.poundInchCu = gCmCu$lbInchCu = function(gCmCu) {
return gCmCu / 27.68; // Gram per Centimeter Cubed to Pound per Inch Cubed
};
convertDensity.gramCentimeterCu.poundFootCu = gCmCu$lbFootCu = function(gCmCu) {
return gCmCu * 62.43; // Gram per Centimeter Cubed to Pound per Foot Cubed
};
/* Gram per Meter Cubed Conversions */
convertDensity.gramMeterCu.gramCentimeterCu = gMCu$gCmCu = function(gMCu) {
return gMCu / 1e+6; // Gram per Meter Cubed to Gram per Centimeter Cubed
};
convertDensity.gramMeterCu.gramMeterCu = gMCu$gMCu = function(gMCu) {
return gMCu; // Gram per Meter Cubed to Gram per Meter Cubed
};
convertDensity.gramMeterCu.kilogramCentimeterCu = gMCu$kgCmCu = function(gMCu) {
return gMCu / 1e+9; // Gram per Meter Cubed to Kilogram per Centimeter Cubed
};
convertDensity.gramMeterCu.kilogramMeterCu = gMCu$kgMCu = function(gMCu) {
return gMCu / 1e+3; // Gram per Meter Cubed to Kilogram per Meter Cubed
};
convertDensity.gramMeterCu.ounceInchCu = gMCu$ozInchCu = function(gMCu) {
return gMCu / 173e+4; // Gram per Meter Cubed to Ounce per Inch Cubed
};
convertDensity.gramMeterCu.ounceFootCu = gMCu$ozFootCu = function(gMCu) {
return gMCu / 1001; // Gram per Meter Cubed to Ounce per Foot Cubed
};
convertDensity.gramMeterCu.poundInchCu = gMCu$lbInchCu = function(gMCu) {
return gMCu / 2768e+4; // Gram per Meter Cubed to Pound per Inch Cubed
};
convertDensity.gramMeterCu.poundFootCu = gMCu$lbFootCu = function(gMCu) {
return gMCu / 1602e+1; // Gram per Meter Cubed to Pound per Foot Cubed
};
/* Kilogram per Centimeter Cubed Conversions */
convertDensity.kilogramCentimeterCu.gramCentimeterCu = kgCmCu$gCmCu = function(kgCmCu) {
return kgCmCu * 1e+3; // Kilogram per Centimeter Cubed to Gram per Centimeter Cubed
};
convertDensity.kilogramCentimeterCu.gramMeterCu = kgCmCu$gMCu = function(kgCmCu) {
return kgCmCu * 1e+9; // Kilogram per Centimeter Cubed to Gram per Meter Cubed
};
convertDensity.kilogramCentimeterCu.kilogramCentimeterCu = kgCmCu$kgCmCu = function(kgCmCu) {
return kgCmCu; // Kilogram per Centimeter Cubed to Kilogram per Centimeter Cubed
};
convertDensity.kilogramCentimeterCu.kilogramMeterCu = kgCmCu$kgMCu = function(kgCmCu) {
return kgCmCu * 1e+6; // Kilogram per Centimeter Cubed to Kilogram per Meter Cubed
};
convertDensity.kilogramCentimeterCu.ounceInchCu = kgCmCu$ozInchCu = function(kgCmCu) {
return kgCmCu * 578; // Kilogram per Centimeter Cubed to Ounce per Inch Cubed
};
convertDensity.kilogramCentimeterCu.ounceFootCu = kgCmCu$ozFootCu = function(kgCmCu) {
return kgCmCu * 9988e+2; // Kilogram per Centimeter Cubed to Ounce per Foot Cubed
};
convertDensity.kilogramCentimeterCu.poundInchCu = kgCmCu$lbInchCu = function(kgCmCu) {
return kgCmCu * 36.13; // Kilogram per Centimeter Cubed to Pound per Inch Cubed
};
convertDensity.kilogramCentimeterCu.poundFootCu = kgCmCu$lbFootCu = function(kgCmCu) {
return kgCmCu * 6243e+1; // Kilogram per Centimeter Cubed to Pound per Foot Cubed
};
/* Kilogram per Meter Cubed Conversions */
convertDensity.kilogramMeterCu.gramCentimeterCu = kgMCu$gCmCu = function(kgMCu) {
return kgMCu / 1e+3; // Kilogram per Meter Cubed to Gram per Centimeter Cubed
};
convertDensity.kilogramMeterCu.gramMeterCu = kgMCu$gMCu = function(kgMCu) {
return kgMCu * 1e+3; // Kilogram per Meter Cubed to Gram per Meter Cubed
};
convertDensity.kilogramMeterCu.kilogramCentimeterCu = kgMCu$kgCmCu = function(kgMCu) {
return kgMCu / 1e+6; // Kilogram per Meter Cubed to Kilogram per Centimeter Cubed
};
convertDensity.kilogramMeterCu.kilogramMeterCu = kgMCu$kgMCu = function(kgMCu) {
return kgMCu; // Kilogram per Meter Cubed to Kilogram per Meter Cubed
};
convertDensity.kilogramMeterCu.ounceInchCu = kgMCu$ozInchCu = function(kgMCu) {
return kgMCu / 173e+1; // Kilogram per Meter Cubed to Ounce per Inch Cubed
};
convertDensity.kilogramMeterCu.ounceFootCu = kgMCu$ozFootCu = function(kgMCu) {
return kgMCu / 1.001; // Kilogram per Meter Cubed to Ounce per Foot Cubed
};
convertDensity.kilogramMeterCu.poundInchCu = kgMCu$lbInchCu = function(kgMCu) {
return kgMCu / 2768e+1; // Kilogram per Meter Cubed to Pound per Inch Cubed
};
convertDensity.kilogramMeterCu.poundFootCu = kgMCu$lbFootCu = function(kgMCu) {
return kgMCu / 16.02; // Kilogram per Meter Cubed to Pound per Foot Cubed
};
/* Ounce per Inch Cubed Conversions */
convertDensity.ounceInchCu.gramCentimeterCu = ozInchCu$gCmCu = function(ozInchCu) {
return ozInchCu * 1.73; // Ounce per Inch Cubed to Gram per Centimeter Cubed
};
convertDensity.ounceInchCu.gramMeterCu = ozInchCu$gMCu = function(ozInchCu) {
return ozInchCu * 173e+4; // Ounce per Inch Cubed to Gram per Meter Cubed
};
convertDensity.ounceInchCu.kilogramCentimeterCu = ozInchCu$kgCmCu = function(ozInchCu) {
return ozInchCu / 578; // Ounce per Inch Cubed to Kilogram per Centimeter Cubed
};
convertDensity.ounceInchCu.kilogramMeterCu = ozInchCu$kgMCu = function(ozInchCu) {
return ozInchCu * 173e+1; // Ounce per Inch Cubed to Kilogram per Meter Cubed
};
convertDensity.ounceInchCu.ounceInchCu = ozInchCu$ozInchCu = function(ozInchCu) {
return ozInchCu; // Ounce per Inch Cubed to Ounce per Inch Cubed
};
convertDensity.ounceInchCu.ounceFootCu = ozInchCu$ozFootCu = function(ozInchCu) {
return ozInchCu * 1728; // Ounce per Inch Cubed to Ounce per Foot Cubed
};
convertDensity.ounceInchCu.poundInchCu = ozInchCu$lbInchCu = function(ozInchCu) {
return ozInchCu / 16; // Ounce per Inch Cubed to Pound per Inch Cubed
};
convertDensity.ounceInchCu.poundFootCu = ozInchCu$lbFootCu = function(ozInchCu) {
return ozInchCu * 108; // Ounce per Inch Cubed to Pound per Foot Cubed
};
/* Ounce per Foot Cubed Conversions */
convertDensity.ounceFootCu.gramCentimeterCu = ozFootCu$gCmCu = function(ozFootCu) {
return ozFootCu / 998.8; // Ounce per Foot Cubed to Gram per Centimeter Cubed
};
convertDensity.ounceFootCu.gramMeterCu = ozFootCu$gMCu = function(ozFootCu) {
return ozFootCu * 1001; // Ounce per Foot Cubed to Gram per Meter Cubed
};
convertDensity.ounceFootCu.kilogramCentimeterCu = ozFootCu$kgCmCu = function(ozFootCu) {
return ozFootCu / 9988e+2; // Ounce per Foot Cubed to Kilogram per Centimeter Cubed
};
convertDensity.ounceFootCu.kilogramMeterCu = ozFootCu$kgMCu = function(ozFootCu) {
return ozFootCu * 1.001; // Ounce per Foot Cubed to Kilogram per Meter Cubed
};
convertDensity.ounceFootCu.ounceInchCu = ozFootCu$ozInchCu = function(ozFootCu) {
return ozFootCu / 1728; // Ounce per Foot Cubed to Ounce per Inch Cubed
};
convertDensity.ounceFootCu.ounceFootCu = ozFootCu$ozFootCu = function(ozFootCu) {
return ozFootCu; // Ounce per Foot Cubed to Ounce per Foot Cubed
};
convertDensity.ounceFootCu.poundInchCu = ozFootCu$lbInchCu = function(ozFootCu) {
return ozFootCu / 2765e+1; // Ounce per Foot Cubed to Pound per Inch Cubed
};
convertDensity.ounceFootCu.poundFootCu = ozFootCu$lbFootCu = function(ozFootCu) {
return ozFootCu / 16; // Ounce per Foot Cubed to Pound per Foot Cubed
};
/* Pound per Inch Cubed Conversions */
convertDensity.poundInchCu.gramCentimeterCu = lbInchCu$gCmCu = function(lbInchCu) {
return lbInchCu * 27.68; // Pound per Inch Cubed to Gram per Centimeter Cubed
};
convertDensity.poundInchCu.gramMeterCu = lbInchCu$gMCu = function(lbInchCu) {
return lbInchCu * 2768e+4; // Pound per Inch Cubed to Gram per Meter Cubed
};
convertDensity.poundInchCu.kilogramCentimeterCu = lbInchCu$kgCmCu = function(lbInchCu) {
return lbInchCu / 36.13; // Pound per Inch Cubed to Kilogram per Centimeter Cubed
};
convertDensity.poundInchCu.kilogramMeterCu = lbInchCu$kgMCu = function(lbInchCu) {
return lbInchCu * 2768e+1; // Pound per Inch Cubed to Kilogram per Meter Cubed
};
convertDensity.poundInchCu.ounceInchCu = lbInchCu$ozInchCu = function(lbInchCu) {
return lbInchCu * 16; // Pound per Inch Cubed to Ounce per Inch Cubed
};
convertDensity.poundInchCu.ounceFootCu = lbInchCu$ozFootCu = function(lbInchCu) {
return lbInchCu * 2765e+1; // Pound per Inch Cubed to Ounce per Foot Cubed
};
convertDensity.poundInchCu.poundInchCu = lbInchCu$lbInchCu = function(lbInchCu) {
return lbInchCu; // Pound per Inch Cubed to Pound per Inch Cubed
};
convertDensity.poundInchCu.poundFootCu = lbInchCu$lbFootCu = function(lbInchCu) {
return lbInchCu * 1728; // Pound per Inch Cubed to Pound per Foot Cubed
};
/* Pound per Foot Cubed Conversions */
convertDensity.poundFootCu.gramCentimeterCu = lbFootCu$gCmCu = function(lbFootCu) {
return lbFootCu / 62.43; // Pound per Foot Cubed to Gram per Centimeter Cubed
};
convertDensity.poundFootCu.gramMeterCu = lbFootCu$gMCu = function(lbFootCu) {
return lbFootCu * 1602e+1; // Pound per Foot Cubed to Gram per Meter Cubed
};
convertDensity.poundFootCu.kilogramCentimeterCu = lbFootCu$kgCmCu = function(lbFootCu) {
return lbFootCu / 6243e+1; // Pound per Foot Cubed to Kilogram per Centimeter Cubed
};
convertDensity.poundFootCu.kilogramMeterCu = lbFootCu$kgMCu = function(lbFootCu) {
return lbFootCu * 16.02; // Pound per Foot Cubed to Kilogram per Meter Cubed
};
convertDensity.poundFootCu.ounceInchCu = lbFootCu$ozInchCu = function(lbFootCu) {
return lbFootCu / 108; // Pound per Foot Cubed to Ounce per Inch Cubed
};
convertDensity.poundFootCu.ounceFootCu = lbFootCu$ozFootCu = function(lbFootCu) {
return lbFootCu * 16; // Pound per Foot Cubed to Ounce per Foot Cubed
};
convertDensity.poundFootCu.poundInchCu = lbFootCu$lbInchCu = function(lbFootCu) {
return lbFootCu / 1728; // Pound per Foot Cubed to Pound per Inch Cubed
};
convertDensity.poundFootCu.poundFootCu = lbFootCu$lbFootCu = function(lbFootCu) {
return lbFootCu; // Pound per Foot Cubed to Pound per Foot Cubed
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment