Numeric Aggregator returning exponential number

Hi all,

I am trying to simply sum a couple of values in a numeric aggregator.
The returned number is for some reason exponential, while the actual output should be just a simple number. Anyone has an idea what’s happening here?

Hi @Remy015
If you can show the work flow and the calculation part would be helpful for a better understanding of the issue

2 Likes

Hi @Msquare_Automation ,

This is the module where calculation is happening.
The input variable ‘AmountDC’ is always a number.

@Remy015
use parseNumber({{AmountDC}}) to convert the values into number inside numeric aggregator
this might work if the values are coming as string

If you require additional assistance, please don’t hesitate to reach out to us.
MSquare Support
Visit us here
Youtube Channel

2 Likes

@Msquare_Automation
Unfortunately, that does not help, the issue remains…


Welcome to the Make community!

Please provide the output bundles of the modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
Screenshot_2023-10-06_141025

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-input-bundle.txt (12.3 KB)
module-1-output-bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:
    Screenshot_2023-10-02_191027

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

This will allow others to better assist you. Thanks!

2 Likes

These are the bundles

Input bundles

[
    {
        "value": 65.63
    },
    {
        "value": 116.25
    },
    {
        "value": 952.37
    },
    {
        "value": -952.37
    },
    {
        "value": 212
    },
    {
        "value": 6800
    },
    {
        "value": 6800
    },
    {
        "value": -7193.88
    },
    {
        "value": -952.37
    },
    {
        "value": 952.37
    },
    {
        "value": -6800
    },
    {
        "value": 212
    },
    {
        "value": -212
    },
    {
        "value": 181.88
    },
    {
        "value": -181.88
    }
]

This is the output

[
    {
        "result": 1e-12
    }
]

Looks like there’s a bug aggregating integers and decimal values at the same time.

It is ok with ALL decimals, or ALL integers:

Screenshot_2024-03-31_220344

For bugs like this, directly contacting support can often lead to a faster resolution.

You can open a new ticket, or if you are unable to login for some reason, you also can reach support using the contact form on the website.

2 Likes

Hi @Remy015

For the numeric aggregator it encounters issues when the result is zero, as it produces an exponential value. The scenario works fine for both positive and negative outcomes, but it needs refinement to handle zero results effectively.

We have successfully implemented a scenario that functions well .
blueprint (9) (1).json (14.9 KB)

1 Like

Hi @Msquare_Automation

Thank you so much.
That’s actually exactly the solution I implemented yesterday, as I noted that separating the positive values from the negatives and than adding those two together later, doesn’t give an error.
Really appreciate you looking into it!

1 Like

Hey there @Remy015 :wave:

Great to hear that @Msquare_Automation and @samliew pushed you in the right direction to solve your issues!

Thank you for keeping us updated and keep up the good work! :muscle:

1 Like