Function fromFloat [src]
Prototype
pub fn fromFloat(x: f80) F80
Parameters
x: f80
Source
pub fn fromFloat(x: f80) F80 {
const int = @as(u80, @bitCast(x));
return .{
.fraction = @as(u64, @truncate(int)),
.exp = @as(u16, @truncate(int >> 64)),
};
}