Wrong output from Math Format as Decimal Number with Places

I think there is something fishy about the below block.
I checked out Bugs in Kodular Eagle before creating a new topic

Describe your issue

Format as Decimal Number with Places block is giving wrong results. See attached screens.

Steps to reproduce the issue

Expected Behaviour

Actual Behaviour

Show your Blocks

Android version

Hi
Please see this

1 Like

You didn’t search or read the docs. See here

round

Returns the given number rounded to the closest integer. If the fractional part is < .5 it will be rounded down. It it is > .5 it will be rounded up. If it is exactly equal to .5, numbers with an even whole part will be rounded down, and numbers with an odd whole part will be rounded up. (This method is called round to even .)

You can see here as well.

Next time don’t spam the forum.

Hi,
Your block have error “places” numbers after the decimal point.

blocks (10)

Read Documentation:
https://docs.kodular.io/blocks/math/#format

1 Like

Thanks everyone for the inputs. I was not using the correct block suitable for my need.
Now i am using floor block after division so 15/10 will return me 1.

If you solved please it marks the post with the answer to your question. To show your question it was solved

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.