diff options
| author | t <t@tjp.lol> | 2026-06-22 18:18:28 -0600 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-06-23 09:34:55 -0600 |
| commit | 538a5d926fa626a00cc3dc12c555f11f82867efd (patch) | |
| tree | 7ea3b84ea5086d67973d0b427ec7c382eb635e50 /libpanto/src/pricing.zig | |
| parent | a417727810cc6722b3c82e3c9e9b46982ef40a08 (diff) | |
libpanto ponytail-audit simplifications
Diffstat (limited to 'libpanto/src/pricing.zig')
| -rw-r--r-- | libpanto/src/pricing.zig | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libpanto/src/pricing.zig b/libpanto/src/pricing.zig index 97dfe38..0565593 100644 --- a/libpanto/src/pricing.zig +++ b/libpanto/src/pricing.zig @@ -83,13 +83,6 @@ pub const Pricing = struct { if (r >= @as(f64, @floatFromInt(std.math.maxInt(u64)))) return std.math.maxInt(u64); return @intFromFloat(r); } - - /// Inverse of `fromDollarsPerMtok`: convert the integer representation - /// back to USD per million tokens (the human-friendly unit). Returns - /// 0.0 for the null case. - pub fn toDollarsPerMtok(micro_cents_per_token: u64) f64 { - return @as(f64, @floatFromInt(micro_cents_per_token)) / 100.0; - } }; // ============================================================================= |
