mirror of
https://github.com/jankae/LibreVNA.git
synced 2025-12-06 07:12:10 +01:00
15 lines
241 B
C++
15 lines
241 B
C++
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <stdint.h>
|
||
|
|
|
||
|
|
namespace Algorithm {
|
||
|
|
|
||
|
|
using RationalApproximation = struct _rationalapproximation {
|
||
|
|
uint32_t num;
|
||
|
|
uint32_t denom;
|
||
|
|
};
|
||
|
|
|
||
|
|
RationalApproximation BestRationalApproximation(float ratio, uint32_t max_denom);
|
||
|
|
|
||
|
|
}
|