LUSID C# SDK
Public Member Functions | Properties | List of all members
Lusid.Sdk.Model.SimpleRoundingConvention Class Reference

Certain bonds will follow certain rounding conventions. For example, Thai government bonds will round accrued interest and cashflow values 2dp, whereas for French government bonds, the rounding is to 7dp. More...

Inheritance diagram for Lusid.Sdk.Model.SimpleRoundingConvention:
Inheritance graph
[legend]

Public Member Functions

 SimpleRoundingConvention (int precision=default(int), string roundingType=default(string))
 Initializes a new instance of the SimpleRoundingConvention class. More...
 
override string ToString ()
 Returns the string presentation of the object More...
 
virtual string ToJson ()
 Returns the JSON string presentation of the object More...
 
override bool Equals (object input)
 Returns true if objects are equal More...
 
bool Equals (SimpleRoundingConvention input)
 Returns true if SimpleRoundingConvention instances are equal More...
 
override int GetHashCode ()
 Gets the hash code More...
 

Properties

int Precision [get, set]
 The precision of the rounding. The decimal places or significant figures to which the rounding takes place. Defaults to 0 if not set. More...
 
string RoundingType [get, set]
 The type of rounding. Default value: None. Available values: None, Down, Up, Nearest. More...
 

Detailed Description

Certain bonds will follow certain rounding conventions. For example, Thai government bonds will round accrued interest and cashflow values 2dp, whereas for French government bonds, the rounding is to 7dp.

Constructor & Destructor Documentation

◆ SimpleRoundingConvention()

Lusid.Sdk.Model.SimpleRoundingConvention.SimpleRoundingConvention ( int  precision = default(int),
string  roundingType = default(string) 
)
inline

Initializes a new instance of the SimpleRoundingConvention class.

Parameters
precisionThe precision of the rounding. The decimal places or significant figures to which the rounding takes place. Defaults to 0 if not set..
roundingTypeThe type of rounding. Default value: None. Available values: None, Down, Up, Nearest..

Member Function Documentation

◆ Equals() [1/2]

override bool Lusid.Sdk.Model.SimpleRoundingConvention.Equals ( object  input)
inline

Returns true if objects are equal

Parameters
inputObject to be compared
Returns
Boolean

◆ Equals() [2/2]

bool Lusid.Sdk.Model.SimpleRoundingConvention.Equals ( SimpleRoundingConvention  input)
inline

Returns true if SimpleRoundingConvention instances are equal

Parameters
inputInstance of SimpleRoundingConvention to be compared
Returns
Boolean

◆ GetHashCode()

override int Lusid.Sdk.Model.SimpleRoundingConvention.GetHashCode ( )
inline

Gets the hash code

Returns
Hash code

◆ ToJson()

virtual string Lusid.Sdk.Model.SimpleRoundingConvention.ToJson ( )
inlinevirtual

Returns the JSON string presentation of the object

Returns
JSON string presentation of the object

◆ ToString()

override string Lusid.Sdk.Model.SimpleRoundingConvention.ToString ( )
inline

Returns the string presentation of the object

Returns
String presentation of the object

Property Documentation

◆ Precision

int Lusid.Sdk.Model.SimpleRoundingConvention.Precision
getset

The precision of the rounding. The decimal places or significant figures to which the rounding takes place. Defaults to 0 if not set.

The precision of the rounding. The decimal places or significant figures to which the rounding takes place. Defaults to 0 if not set.

◆ RoundingType

string Lusid.Sdk.Model.SimpleRoundingConvention.RoundingType
getset

The type of rounding. Default value: None. Available values: None, Down, Up, Nearest.

The type of rounding. Default value: None. Available values: None, Down, Up, Nearest.


The documentation for this class was generated from the following file: