Skip to content

Main content

Scientific Mantissa Decimal Marker Tool

Change the display decimal marker of a validated ASCII mantissa without locale inference.

Loading tool…

Description

Replace its single dot, if present, with that marker.

Numeric-looking text has both a value and a written form. Signs, decimal places, exponent markers and trailing zeros can carry display information that ordinary numeric conversion discards; formatting a token does not verify its meaning.

Replace its single dot, if present, with that marker.

When to use this tool

Use Scientific Mantissa Decimal Marker when you need the specified literal representation or text-level numeric diagnostic.

How to use the tool and how it works

  1. Enter mantissa, decimalMarker. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read text. Use the output convention below.

Require ordinary signed decimal mantissa text and decimalMarker dot or comma. Replace its single dot, if present, with that marker.1

Input fieldMeaning and unitsAccepted input
mantissaMantissaRequired. Text; maximum UTF-16 length 8192.
decimalMarkerDecimal MarkerRequired. Text; one of ".", ","; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
textLiteral formatted output under the stated grammar and display convention.Required. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "mantissa": "1.25",
    "decimalMarker": ","
  },
  "output": {
    "text": "1,25"
  }
}

Limitations and assumptions

  • Exponent notation and grouping separators are rejected. The mantissa's value and digits are not rounded or scientifically normalized.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Use a locale-aware or destination-specific formatter when broader parsing and presentation rules are needed. Retain original text when lexical precision matters and validate numeric meaning separately.

References

  1. Calculation and input contract: format/scientific-mantissa-decimal-marker — tool.io

Similar or alternative tools