DanielManahan
Member
I want to test if the dollar price on a stock is an Integer or a fraction (decimal)
def PriceIsInteger = if close == Integer then 1, else 0;
example if the price at the close is 1.00 then true if the price at the close is 0.99 then false if the price at the close is 1.01 then false. also for 2.01 and 3.01 etc... would be false
can this be done?
def PriceIsInteger = if close == Integer then 1, else 0;
example if the price at the close is 1.00 then true if the price at the close is 0.99 then false if the price at the close is 1.01 then false. also for 2.01 and 3.01 etc... would be false
can this be done?