sapphire/examples/float128.sp
2022-08-25 10:01:14 +02:00

9 lines
268 B
SourcePawn

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