Decimal Fraction Scale Maths functions for JavaScript - R2
This version is out-of-date. See Current version.
JavaScript Functions :-
FLOAT fmstr (STRING::f) - FRACTION to FRACTION DECIMAL; returns (INT/FLOAT) MI.MF
STRING mfstr (STRING::d) - DECIMAL FRACTION to FRACTION FEET; returns (STRING) FT'IN"N/D
STRING mistr (STRING::d) - DECIMAL FRACTION to FRACTION INCHS; returns (STRING) IN"N/D
Use symbols :-
' symbol for FT
SPACE or " symbol for IN
/ symbol between fraction
JavaScript use example :-
alert(fmstr("1'29 1/2")); alert(mistr(fmstr("1'29 1/2"))); alert(mfstr(fmstr("1'29 1/2")));
Functions source code :-
dfsmf.zip
Copyright, disclaimer, and Notices :-
Release notice
License notice/s
Live test results :-
End of tests
See previous version