public function main() {
error|decimal val = decimal:fromString("ENT 12 N 0000");
}
The above code panic instead of returning an error.
Getting:
error: {ballerina}DecimalExponentError {"message":"too many exponents found in decimal value 'ENT 12 N 0000'"}
at ballerina.lang.decimal.0:fromString(decimal.bal:206)
bytes:main(bytes.bal:3)
Description
The above code panic instead of returning an error.
Getting:
Steps to Reproduce
No response
Affected Version(s)
No response
OS, DB, other environment details and versions
No response
Related area
-> Runtime
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response