Golf 3.4.0 released
This release gives Golf full-blown general puprose programming capabilities with the extensive support for a double type, including double arrays (see new-array). A double is created with set-double statement. Doubles are extended precision 64 bit floating point values. A long list of math functions have been added. The following return a double:
The following functions return a number - especially usefull is a num() function that converts a double to int (see ceil(), round(), floor(), trunc()):
Doubles can also be passed in URL input data, and are automatically converted from string input.
print-format conversion have been added for double (%<width>.<precision>f|e|g), as well as double support in print-out.
"error-margin" clause is added in conditional if-true statement to allow comparing double for equality with a margin of error.
Added "double" type in arrays, including process-scoped arrays.
Added $$() for conversion of doubles to strings in string expressions, and ##() for conversion of strings to doubles in double expressions.
Added a debugging --fpe option to gg utility to make the application with double and integer instrumentation, so errors like overflows and division by zero can be caught.
Fixed a bug with error reporting: when an error is reported multiple times in the same process, only the first one would have the error description. Now each is complete as expected.
Fixed an issue with using vi vs vim: in vi there's no support for highlighting, which would issue a one time error message.
Fixed an issue when an error message in Golf code compilation is not shown when it contains binary text.
Fixed an issue with unary plus ("+") missing in number/double expressions.
Clarified error message when request name is missing in URL.
Added abs-double, string-double, double-string, as well as double type to get-param and set-param statements.
Copyright (c) 2019-2025 Gliim LLC. All contents on this web site is "AS IS" without warranties or guarantees of any kind.