{"id":"number-engineering-format","version":"1.0.0","description":"Format an exact decimal in scientific or engineering notation with explicit precision and rounding.","supported_operations":["format an exact decimal in engineering notation","format a number in scientific notation","round a decimal to significant digits for engineering display","convert decimal text to normalized exponent notation","show an SI prefix for an engineering exponent","format extreme decimal exponents without floating point","עיצוב מספר בכתיב הנדסי"],"unsupported_operations":["locale-aware number formatting or digit grouping","unit conversion or dimensional analysis","parsing non-decimal numeric bases"],"semantics":["Decimal input is parsed from text and all significand arithmetic uses strings and BigInt; binary floating point never represents the decimal value.","Scientific notation has one coefficient digit before the point; engineering notation has one to three and an exponent divisible by three.","The coefficient contains exactly significant_digits significant digits, including trailing zeros; zero is unsigned with exponent zero.","half_even breaks exact ties toward an even final retained digit; half_up breaks ties away from zero; directed modes follow their named direction.","include_si_prefix defaults to false. A prefix is returned only for engineering notation and a nonzero exponent with one NIST SI prefix symbol from -30 through 30.","Canonical rendered notation is coefficient followed by lowercase e and an exponent with no plus sign or leading zeros."],"limits":{"max_input_bytes":1024,"max_significant_digits":100,"max_abs_exponent":1000000},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["value","notation","significant_digits","rounding_mode"],"properties":{"value":{"type":"string","minLength":1,"maxLength":1024,"pattern":"^[+-]?(?:(?:[0-9]+)(?:\\.[0-9]+)?|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?$","description":"Exact decimal text, optionally with a base-ten exponent."},"notation":{"type":"string","enum":["scientific","engineering"],"description":"Normalized scientific or engineering notation."},"significant_digits":{"type":"integer","minimum":1,"maximum":100,"description":"Exact count of significant digits in the coefficient."},"rounding_mode":{"type":"string","enum":["half_even","half_up","toward_zero","away_from_zero","floor","ceiling"],"description":"Explicit rule used when discarded digits are nonzero."},"include_si_prefix":{"type":"boolean","description":"Request an SI prefix when the engineering exponent has one unambiguous symbol."}}},"output_schema":{"type":"object","additionalProperties":false,"required":["coefficient","exponent","rendered"],"properties":{"coefficient":{"type":"string","minLength":1,"maxLength":102,"pattern":"^-?(?:0|[1-9][0-9]{0,2})(?:\\.[0-9]+)?$","description":"Normalized coefficient with exactly the requested significant digits."},"exponent":{"type":"integer","minimum":-1000000,"maximum":1000000,"description":"Base-ten exponent."},"rendered":{"type":"string","minLength":3,"maxLength":112,"pattern":"^-?(?:0|[1-9][0-9]{0,2})(?:\\.[0-9]+)?e-?[0-9]+$","description":"Canonical coefficient followed by e and the base-ten exponent."},"si_prefix":{"type":"string","enum":["q","r","y","z","a","f","p","n","µ","m","k","M","G","T","P","E","Z","Y","R","Q"],"description":"Unambiguous SI prefix symbol for a nonzero engineering exponent."}}},"examples":[{"input":{"value":"12345","notation":"engineering","significant_digits":4,"rounding_mode":"half_even","include_si_prefix":true},"output":{"coefficient":"12.34","exponent":3,"rendered":"12.34e3","si_prefix":"k"}},{"input":{"value":"9.995","notation":"scientific","significant_digits":3,"rounding_mode":"half_up"},"output":{"coefficient":"1.00","exponent":1,"rendered":"1.00e1"}},{"input":{"value":"-0.00000125","notation":"engineering","significant_digits":2,"rounding_mode":"half_even","include_si_prefix":true},"output":{"coefficient":"-1.2","exponent":-6,"rendered":"-1.2e-6","si_prefix":"µ"}}],"execute_url":"/v1/tools/number-engineering-format/versions/1.0.0/execute"}