Displaying posts categorized under

Javascript

One more Javascript function

This function will format a value expressed as feet (with decimals) into feet and inches.

Javascript functions for numeric input and output

As a part of a calculator for model railroad stub switches, I developed a couple of javascript routines for input and output that allow more flexibility than the standard implementation. This function converts to text for display from a numeric value, with a variable number of decimals,┬áremoving extra trailing zeroes. It also converts the (default […]