value = Math.Truncate(100 * value) / 100;
Beware that fractions like these cannot be accurately represented in floating point.
More Related Contents:
- Math.Round doesn’t behave like i want it to. (X.0xxxxx numbers) [closed]
- Round a double to x significant figures
- Built in .Net algorithm to round value to the nearest 10 interval
- How to round up value C# to the nearest integer?
- Random.Next returns always the same values [duplicate]
- How to tell whether a point is to the right or left side of a line
- Is double Multiplication Broken in .NET? [duplicate]
- Arithmetic operator overloading for a generic class in C#
- Mod of negative number is melting my brain
- How can I round up the time to the nearest X minutes?
- Algorithm for simplifying decimal to fractions
- Fixed point math in C#
- What is the easiest way to subtract time in C#?
- Algorithm to find which numbers from a list of size n sum to another number
- get closest point to a line
- Rotate a point by another point in 2D
- Rounding up to 2 decimal places in C#
- Calculating point on a circle’s circumference from angle in C#?
- How do you do *integer* exponentiation in C#?
- Rounding down to 2 decimal places in c#
- Performing Math operations on decimal datatype in C#?
- Creating a Math library using Generics in C#
- What’s the quickest way to compute log2 of an integer in C#?
- Rotate image math (C#)
- Round double in two decimal places in C#?
- How do I calculate a trendline for a graph?
- Algorithm for Calculating Binomial Coefficient
- The algorithm to find the point of intersection of two 3D line segment
- How to round decimal value up to nearest 0.05 value?
- Double vs Decimal Rounding in C#