-
Notifications
You must be signed in to change notification settings - Fork 1
/
FactorRoundingMode.cs
34 lines (29 loc) · 1.23 KB
/
FactorRoundingMode.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================
using System;
namespace RapidField.SolidInstruments.Mathematics
{
/// <summary>
/// Specifies the mode for factor rounding operations.
/// </summary>
public enum FactorRoundingMode : Int32
{
/// <summary>
/// The mode is unspecified.
/// </summary>
Unspecified = 0,
/// <summary>
/// The value will be rounded to the nearest multiple that is equidistant to, closer to, or further from zero.
/// </summary>
InwardOrOutward = 1,
/// <summary>
/// The value will be rounded to the nearest multiple that is equidistant or closer to zero.
/// </summary>
InwardOnly = 2,
/// <summary>
/// The value will be rounded to the nearest multiple that is equidistant to or further from zero.
/// </summary>
OutwardOnly = 3
}
}