Closed
Description
Describe the bug
The string.format
extension currently outputs scientific notation rendered using a unicode multiplication sign ×
and superscript for the exponent 2.718280 × 10⁰⁰
.
To Reproduce
Check which components this affects:
- parser
- checker
- interpreter
-
string.format
extension
Sample expression and input that reproduces the issue:
"%e".format([2.71828])
Test setup:
Existing test case.
Expected behavior
The output should instead be conforming to the CEL spec: 2.718280E+00
or 2.718280e+00
FLOAT_LIT ::= -? DIGIT* . DIGIT+ EXPONENT? | -? DIGIT+ EXPONENT
DIGIT ::= [0-9]
HEXDIGIT ::= [0-9abcdefABCDEF]
EXPONENT ::= [eE] [+-]? DIGIT+
Metadata
Metadata
Assignees
Labels
No labels