%gen
Publié : mer. févr. 13, 2019 2:38 pm
Hello
The output of the next instruction places space at the end of gen, Why?
printf("%gen:%gen~%gen",eval(id0,0),eval(id0,1),approx(id0)) returns
id0: ¾ ~0.75
the expected output should be
id0:¾~0.75
the spaces to add should be those that are within the string
printf("%gen: %gen ~ %gen",eval(id0,0),eval(id0,1),approx(id0)) returns
id0: ¾ ~ 0.75
The output of the next instruction places space at the end of gen, Why?
printf("%gen:%gen~%gen",eval(id0,0),eval(id0,1),approx(id0)) returns
id0: ¾ ~0.75
the expected output should be
id0:¾~0.75
the spaces to add should be those that are within the string
printf("%gen: %gen ~ %gen",eval(id0,0),eval(id0,1),approx(id0)) returns
id0: ¾ ~ 0.75
Code : Tout sélectionner
f():={
local id0;
id0:=3/4;
DispG; ClrIO;
printf("%gen:%gen~%gen",eval(id0,0),eval(id0,1),approx(id0))
return "Done";
}:;