summaryrefslogtreecommitdiff
path: root/src/Float.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Float.zig')
-rw-r--r--src/Float.zig22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/Float.zig b/src/Float.zig
deleted file mode 100644
index 5877d12..0000000
--- a/src/Float.zig
+++ /dev/null
@@ -1,22 +0,0 @@
-const c = @import("c");
-
-const zpy = @import("root.zig");
-const conversion = zpy.conversion;
-
-const Self = @This();
-
-object: zpy.Object,
-
-pub fn from(value: f64) !Self {
- return .{
- .object = .fromPtr(try conversion.ptr(c.PyFloat_FromDouble(value))),
- };
-}
-
-pub fn asDouble(self: *const Self) f64 {
- return c.PyFloat_asDouble(self.object.ptr);
-}
-
-pub fn deinit(self: *Self) void {
- self.object.decref();
-}