sapphire/examples/float128.sp
2022-08-26 18:19:45 +02:00

9 lines
274 B
SourcePawn

const io from @'core/io';
const { concat } from @'core/string';
const { toString } from @'core/float_utils';
let @main : i32 in {
let float1 : f128 = 234.6;
f128 float2 : f128 = 2934748348291930404.5;
io.outln(concat('Result is: ',toString(float1 + float2)));
}