MKS Plugin for Real Studio allows you to construct programs which can handle numbers with units much like doubles and integers are handled. The basic MKS units are Meters, Kilograms, Seconds, Coulombs, Kelvin, Dollars, Angular units, Solid angle units, and Luminosity. You can use the arithmetic operators +, -, *, / with any valid combination of MKS's, doubles, and integers. Integer and fractional powers of units are allowed. And MKS's can be compared in if statements.
It can be used to build Linux, Mac, and Windows applications.
Version 1.0.1 fixes a problem when micro is used as a prefix.
Version 1.0.2 adds more unit names.
Version 1.0.3 now handles the Greek mu (µ) as a prefix for 1e-6. It also recognizes the Greek capital omega for ohm.
Version 1.0.4 adds more unit names and a file which lists all unit names.
Version 1.1 renames MKS Plugin exceptions so as to be compatible with REALbasic 2005.
Version 1.2 adds the energy unit "tonsTNT" and the speed unit "mph".
Version 2.0 is now compatible with later versions of REAL Studio.
Version 3.0 adds many new units.
Version 3.1 keeps the unit names pascal and pascals, but not Pa or pa since those stand for PetaAmperes and picoAmperes.
Download MKS Plugin v 3.1. The download includes documentation.
MKSPlugin.zip (383 KB)
The xCode project for MKS Plugin can be downloaded here:
MKSPluginSource.zip (87 KB)