MCPcopy Index your code
hub / github.com/RustPython/RustPython / format_nan

Function format_nan

crates/literal/src/float.rs:32–39  ·  view source on GitHub ↗
(case: Case)

Source from the content-addressed store, hash-verified

30}
31
32fn format_nan(case: Case) -> String {
33 let nan = match case {
34 Case::Lower => "nan",
35 Case::Upper => "NAN",
36 };
37
38 nan.to_string()
39}
40
41fn format_inf(case: Case) -> String {
42 let inf = match case {

Callers 3

format_fixedFunction · 0.85
format_exponentFunction · 0.85
format_generalFunction · 0.85

Calls 1

to_stringMethod · 0.80

Tested by

no test coverage detected