• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

the expression engine does not evaluate floats lower than 8.0 with padding...

New Here ,
Feb 04, 2023 Feb 04, 2023

Copy link to clipboard

Copied

the expression engine does not evaluate floats lower than 8.0 with padding...
08.20 -> success
07.15 -> error

TOPICS
Crash , Expressions

Views

152

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 04, 2023 Feb 04, 2023

Copy link to clipboard

Copied

Not sure what you're trying to do here. The valuse would need to be netered as stings in the source text property or converted using string methods. Everything else is just reliance on the engines' internal catch-all mechanics, which is kinda sloppy, anyway.

 

Mylenium

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 04, 2023 Feb 04, 2023

Copy link to clipboard

Copied

jmBillard_0-1675525955073.png

it's a simple stock variation chart template...
for sanity reasons data prep padding was necessary 😅

and it all colapses with values lower than 7am...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 04, 2023 Feb 04, 2023

Copy link to clipboard

Copied

LATEST

I think you might be bumping into the legacy way javascript handles inputting octal numbers, where you have a leading zero and a digit less than 8. So 051, for example, would be interpreted as octal 51 (decimal 41). But if you have a leading zero and a digit less than 8, and after that you have a digit greater than 7 or a decimal point--it doesn't know what to do with that "illegal" octal number. I think you'll be OK if you keep everything in quotes and then use parseFloat, like this: parseFloat("07.01").

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines