MCPcopy Create free account
hub / github.com/AI45Lab/Code / f64_finite

Method f64_finite

core/tests/test_persisted_schema_roundtrip.rs:95–97  ·  view source on GitHub ↗

Finite f64 only — serde_json renders NaN/Inf as `null`, which would not round-trip. We deliberately stay in the finite range so the stability property holds.

(&mut self)

Source from the content-addressed store, hash-verified

93 /// not round-trip. We deliberately stay in the finite range so the
94 /// stability property holds.
95 fn f64_finite(&mut self) -> f64 {
96 (self.below(1_000_000) as f64) / 100.0
97 }
98 /// A string drawn from a pool of round-trip hazards: empty, unicode,
99 /// embedded quotes/newlines, and JSON-looking text (the last is the
100 /// trap for the untagged `ToolResultContentField` — a string that

Callers 2

gen_agent_eventFunction · 0.80
gen_session_dataFunction · 0.80

Calls 1

belowMethod · 0.80

Tested by

no test coverage detected