Constructs a new RoundTask.
Optional
properties: IRoundTaskProperties to set
The number of decimals to round to.
The rounding method to use.
Static
createCreates a new RoundTask instance using the specified properties.
Optional
properties: IRoundTaskProperties to set
RoundTask instance
Static
decodeDecodes a RoundTask message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length: numberMessage length if known beforehand
RoundTask
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeDecodes a RoundTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
RoundTask
If the payload is not a reader or valid buffer
If required fields are missing
Static
encodeEncodes the specified RoundTask message. Does not implicitly verify messages.
RoundTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
encodeEncodes the specified RoundTask message, length delimited. Does not implicitly verify messages.
RoundTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
fromStatic
getStatic
toCreates a plain object from a RoundTask message. Also converts values to other types if specified.
RoundTask
Optional
options: IConversionOptionsConversion options
Plain object
Static
verify
Round the current running result to a set number of decimal places.
Input: The current running numerical result.
Returns: The running result rounded to a set number of decimal places.
Example: Round down the running resul to 8 decimal places