Hello,

I'm creating a new report based on data from one of our software vendors. As part of the tax calculation options, end users have four options:

1. Any remainder rounds up
2. Half penny rounds up
3. Half penny rounds down
4. Any remainder rounds down

Math is not exactly one of my strong points so I really have no idea how to accomplish any of those options above. Simple rounding I can handle.

Thanks,

Tim

Recommended Answers

All 2 Replies

Look at the following Math class functions.

Math.Ceiling
Math.Round (specifically, the overload using the MidpointRounding enum)
Math.Floor

Look at the following Math class functions.

Math.Ceiling
Math.Round (specifically, the overload using the MidpointRounding enum)
Math.Floor

Ok, thanks for the reply.

Tim

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.