• Resolved asherbd

    (@asherbd)


    Hi

    Great plugin!
    Looking for a way to round up field to next thousand.
    12,235 >> 13,000

Viewing 1 replies (of 1 total)
  • Plugin Contributor nick6352683

    (@nick6352683)

    I have not test this, but from the top of my head: How about using the ceil function… and 2 calculated fields?

    By using your example, let’s get the 12,235 and divide it by 1000. The calculated value now should be 12.235. By using the ceil function ceil(12.235) it will return 13. To this calculation add a multiplication of 1000, and we should get 13,000.

    Again, I have NOT tested this, but I have a good feeling about it !!!

    Of course, instead of the actual numbers, you probably will have to use ACF numeric field names.

    • This reply was modified 1 year, 1 month ago by nick6352683.
Viewing 1 replies (of 1 total)
  • The topic ‘round up to next thousand’ is closed to new replies.