SlipperyPickle
2015-01-25 09:22:45
Hi,
I guess it's a noob question, but for my script I try to calculate the profit. But I get an error. I guess that's because it isn't a round number (don't know the exact English word) but it's a number like "31.3323". How do I calculate in Simba with comma numbers.
This is my code:
this is the erorr, which points to "c := (b - a) / 3;":
Thanks in advance!
I guess it's a noob question, but for my script I try to calculate the profit. But I get an error. I guess that's because it isn't a round number (don't know the exact English word) but it's a number like "31.3323". How do I calculate in Simba with comma numbers.
This is my code:
procedure procedure();
var
a, b, c: integer;
begin
a := grandExchange.getPrice(6983);
b := (grandExchange.getPrice(6979) * 10);
c := (b - a) / 3;
writeLn(IntToStr(c));
end;this is the erorr, which points to "c := (b - a) / 3;":
Error: Can't assign "Extended" to "Int32" at line ..Thanks in advance!