NumberForm
Tilgjengelig, avviker fra .wl-referansen
Prints a number to a given precision. `NumberForm[x, n]` shows `n`
Avviker fra .wl-referansen: `NumberForm` does not switch to scientific notation
NumberForm[expr, n]
NumberForm[expr, {n, f}]
NumberForm[expr]
ToString[NumberForm[1234.5678, 6]]
→ 1234.57ToString[NumberForm[50., {3, 1}]]
→ 50.0ToString[NumberForm[1234.5, NumberPoint -> ","]]
→ 1234,5ToString[NumberForm[1234.5678, {8, 4}, DigitBlock -> 2]]
→ 12,34.56 78ToString[NumberForm[1234.5678, {8, 4}, DigitBlock -> 3, NumberSeparator -> {"|", "_"}]]
→ 1|234.567_8ToString[NumberForm[12.3, {8, 3}, NumberPadding -> {"*", "0"}]]
→ ****12.300ToString[NumberForm[-12.3, {6, 2}, NumberPadding -> {"0", "0"}]]
→ 00-12.30ToString[NumberForm[-12.3, {6, 2}, SignPadding -> True, NumberPadding -> {"0", "0"}]]
→ -0012.30ToString[NumberForm[Pi, 5]]
→ Pi- DefaultPrintPrecision — default Automatic
- DigitBlock — default Infinity
- ExponentFunction — default Automatic
- ExponentStep — default 1
- NumberFormat — default Automatic
- NumberMultiplier — default " × "
- NumberPadding — default { "" , "0" }
- NumberPoint — default "."
- NumberSeparator — default { " , " , " " }
- NumberSigns — default { "-" , "" }
- ScientificNotationThreshold — default { -5 , 6 }
- SignPadding — default False
Alle 6300 funksjoner ·
Bruk dette fra en MCP-klient