Forum Academy Marketplace Showcase Pricing Features

Converting To Number Bug (Only with groupings)

I am experiencing a brand new issue when converting formatted numbers (text) back into numbers when using data from a list of groupings. Note that when its from a non-grouped list, there is no issue.

This is the page is the following screenshots: Chuma Okeke | Takeside News

CASE 1: Formatting as a number
Using this format to round the list of numbers:
Screen Shot 2022-01-30 at 8.54.25 PM
We see this behavior:

You can see the numbers are correct in the data source (Y-Values) but incorrect on the graph.

CASE 2: Converting Text to Number
Using this method:
Screen Shot 2022-01-30 at 8.56.33 PM
I get this result:

Here you can see that the data source (Y-Values) Match the charts display, however, converting to numbers resulted in incorrect data.

What is going on here?

My goal is to simply round each number in the list. Is this not the way to do it? Additionally, there is no reference tooltip in the editor for this function.

If your items are of type number (and why wouldn’t they be?) the operator you’re looking for is :rounded to (reference: Operators & Comparisons - Bubble Docs)

@keith this Option is not available to lists

Oh, HA HA, Bubble didn’t add each item rounded to as an option for numeric lists. So stupid.

Oh well, since you’re familiar with List Shifter, you could use a List Shifter to do a PROCESS List action on your desired list and round it there. (You have to do it the basic JS way with 3 steps, step 1 take the list item and multiply it by 100 (for example for 2 dec place rounding), step 2 Math.round() on result of step 1, step 3 divide result of step 2 by 100 and push that onto the Processed List.

1 Like

BTW, you should report that to Bubble as a bug and call them names when you do so. :wink:

1 Like

This topic was automatically closed after 14 days. New replies are no longer allowed.