Inconsistent STR() evaluation when decimal not specified
Posted: Sat May 06, 2023 12:32 am
Hello everyone;
I believe the STR() function in XSharp yields different results from Clipper when the decimal is not coded (which, although legit is certainly lazy
coding ...) and SET DECIMAL and / or SET FIXED have not been specified:
Harbour Clipper:
XSharp – Harbour)
I believe the STR() function in XSharp yields different results from Clipper when the decimal is not coded (which, although legit is certainly lazy
coding ...) and SET DECIMAL and / or SET FIXED have not been specified:
Harbour Clipper:
Code: Select all
Str(123.456,10) -> " 123"
Str(123.456,10,0) -> " 123"
Code: Select all
Str(123.456,10) -> " 123.46"
Str(123.456,10,0) -> " 123"