Class DecimalPlaces
Indicates whether decimal places should be enforced, and how many digits it should show.
Inheritance
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class DecimalPlaces : IEquatable<DecimalPlaces>
Constructors
DecimalPlaces(Nullable<Boolean>, Nullable<Int32>)
Initializes a new instance of the DecimalPlaces class.
Declaration
public DecimalPlaces(bool? isEnforced = null, int? digits = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Boolean> | isEnforced | Indicates whether decimal point setting should be enforced. |
System.Nullable<System.Int32> | digits | The number of digits after decimal to display. |
Properties
Digits
The number of digits after decimal to display
Declaration
public int? Digits { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | The number of digits after decimal to display |
IsEnforced
Indicates whether decimal point setting should be enforced
Declaration
public bool? IsEnforced { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> | Indicates whether decimal point setting should be enforced |
Methods
Equals(DecimalPlaces)
Returns true if DecimalPlaces instances are equal
Declaration
public bool Equals(DecimalPlaces input)
Parameters
Type | Name | Description |
---|---|---|
DecimalPlaces | input | Instance of DecimalPlaces to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System.Object | input | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |