#specify compiler version

1 messages · Page 1 of 1 (latest)

austere heron
#
var digit: i128 = 0;
var part: f64 = undefined;
part = @floatFromInt(digit);//error: invalid builtin function: '@floatFromInt'zig 0.10.0 #1
//part = @intToFloat(f64, digit);//error: invalid builtin function: '@intToFloat'zig trunk #Executor 1
``` i get both errors at the same time, at https://zig.godbolt.org/ on zig trunk, is there a way to specify version in the code to make it stop
austere heron
#

std.fmt.parseFloat()

austere heron
#

@truncate

#

im pretty sure this issue came about because if the online compiler, i will download zig for real

marsh dove
#

:worksonmymachine:

#

(use zig trunk)

austere heron
#

u not save?

marsh dove
#

wdym