Type Function Float [src]

Prototype

pub fn Float(comptime bit_count: u8) type

Parameters

bit_count: u8

Example

test Float { try testing.expectEqual(f16, Float(16)); try testing.expectEqual(f32, Float(32)); try testing.expectEqual(f64, Float(64)); try testing.expectEqual(f128, Float(128)); }

Source

pub fn Float(comptime bit_count: u8) type { return @Type(.{ .float = .{ .bits = bit_count }, }); }