PPureDecimal
Product

Product features · Lossless decimal serialization

01

Serialize decimal strings into JSON without converting them through binary floating point. Round-trip trailing zeros and very large values, rejecting exponent notation and non-finite names under an explicit grammar.

01

Connection

Base URL, credentials and a reachable server.

02

Selection

A model available through the configured endpoint.

03

Capabilities

Context limits and tool support are determined by the model and server.

Lossless decimal serialization

● ● ●PureDecimal●
A concrete starting point · Lossless decimal serialization ×
function encodeDecimal(value: string): string {
  if (!/^[+-]?\d+(?:\.\d+)?$/.test(value)) {
    throw new Error("decimal.grammar");
  }
  return JSON.stringify({ decimal: value });
}
✳Serialize decimal strings into JSON without converting them through binary floating point.
✓ ChangesReview before applying ↗
Illustrative workspace
AI coding workspace

Your next change starts here.

Get the Windows app ↗