Forum Academy Marketplace Showcase Pricing Features

Maths- I want to round the number recieved from the database up

Hello, I have a text element receiving numeric data from the database. Those numbers could go into the millions. The challenge is that, I don’t want to display all those numbers if the value goes beyond a 1000 like for example 3200, I want to display it as 3.2k or 25k for 25000. Like how the social media platforms display number of followers

Hi there, @ericwillcampbell3… you could give this plugin a shot or if you don’t want to use a plugin, you can use conditionals as shown in this post.


Thanks… I’m gonna try both to see which one works best.

1 Like