parseNumericInput function

String parseNumericInput(
  1. double value
)

Rounds a double value to the nearest integer for display purposes. If the value is null, it returns '0'.

Implementation

String parseNumericInput(double value) {
  return value.round().toString();
}