Quantcast
Channel: Latest Posts
Viewing all articles
Browse latest Browse all 6482

Calculate pence from net sale

$
0
0

Hi Guys

 

I'm trying to get the current total of a sale but work out if it's a whole pound or if there's pence involved. I'm thinking I could probably use modulo somehow but I don't fully understand it or how I would do it for this.

 

Any ideas or suggestions?

 

My overall goal is to round a sale up to the nearest £. I'm ok with the rest of the script it's just the working out if it's already at a whole £ or not  :mellow:


Viewing all articles
Browse latest Browse all 6482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>