=== Using The Script ===
The functionality for this script is contained in the method (sometimes known as a user-defined function or UDF) at the top. Everything inside state_entry is there purely to demonstrate how the function might be used. If adding this to a
preprocessor along with the [[Check if the input is a float|check float script]] be aware that already forms part of this script and should be used in that way. No need to duplicate it.
==== Licence ====