Struct DoubleTolerance
- Namespace
- Acuit.Pinpoint.Workflows.Testing.Primitives
- Assembly
- Acuit.Pinpoint.Workflows.Testing.dll
[TypeConverter(typeof(DoubleToleranceConverter))]
public struct DoubleTolerance : IEquatable<DoubleTolerance>
- Implements
- Inherited Members
Properties
Amount
public double Amount { readonly get; set; }
Property Value
IsPercent
public bool IsPercent { readonly get; set; }
Property Value
Methods
AbsoluteToleranceFor(double)
public readonly double AbsoluteToleranceFor(double value)
Parameters
valuedouble
Returns
Add(double, DoubleTolerance)
public static double Add(double left, DoubleTolerance right)
Parameters
leftdoublerightDoubleTolerance
Returns
Equals(DoubleTolerance)
public readonly bool Equals(DoubleTolerance other)
Parameters
otherDoubleTolerance
Returns
Equals(object?)
public override readonly bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override readonly int GetHashCode()
Returns
GetLimits(double, out double, out double)
public readonly void GetLimits(double target, out double minimum, out double maximum)
Parameters
IsValueWithinTolerance(double, double)
public readonly bool IsValueWithinTolerance(double target, double value)
Parameters
Returns
Parse(string, IFormatProvider)
public static DoubleTolerance Parse(string s, IFormatProvider provider)
Parameters
sstringproviderIFormatProvider
Returns
Subtract(double, DoubleTolerance)
public static double Subtract(double left, DoubleTolerance right)
Parameters
leftdoublerightDoubleTolerance
Returns
ToString()
Returns a string that represents the current object.
public override readonly string ToString()
Returns
- string
A string that represents the current object.
ToString(IFormatProvider)
public readonly string ToString(IFormatProvider provider)
Parameters
providerIFormatProvider
Returns
Operators
operator +(double, DoubleTolerance)
public static double operator +(double left, DoubleTolerance right)
Parameters
leftdoublerightDoubleTolerance
Returns
operator ==(DoubleTolerance, DoubleTolerance)
public static bool operator ==(DoubleTolerance left, DoubleTolerance right)
Parameters
leftDoubleTolerancerightDoubleTolerance
Returns
operator !=(DoubleTolerance, DoubleTolerance)
public static bool operator !=(DoubleTolerance left, DoubleTolerance right)
Parameters
leftDoubleTolerancerightDoubleTolerance
Returns
operator -(double, DoubleTolerance)
public static double operator -(double left, DoubleTolerance right)
Parameters
leftdoublerightDoubleTolerance