I have the following formula
X := X + F*(1-i div n);
Where
X, F, i, n: integer;
The code I\'m using is this<
Is there anyway to use the property like approach outside a class/record?
No, property getters and setters can only be implemented in records and classes.