MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / fl2int

Function fl2int

src/models/sortformer_diar/postprocess.cpp:181–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179 return speech_segments;
180}
181
182int64_t fl2int(double value, int decimals) {
183 return static_cast<int64_t>(std::llround(value * std::pow(10.0, decimals)));
184}
185
186double int2fl(int64_t value, int decimals) {

Callers 1

Calls 1

powFunction · 0.85

Tested by

no test coverage detected