Skip to content

[BUG] Casting rounded float to string returns "0E0" instead of "0.0" #3947

@penghuo

Description

@penghuo

What is the bug?
Casting rounded float to string returns "0E0" instead of "0.0"

How can one reproduce the bug?

source=test002 
| eval vv=round((cast(1 as double)/100000)*100, 2) 
| eval sv=cast(vv as string) 
| fields sv

sv = "0E0"

What is the expected behavior?

sv = "0.0"

What is your host/environment?

  • OS: [e.g. iOS]
  • Version [e.g. 22]
  • Plugins

Do you have any screenshots?
n/a

Do you have any additional context?
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    PPLPiped processing languagebugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions