I am looking for a faster way to test if a value is >0 and <1. I think it would be useful to avoid using the AND command. I can also use THEN IF, but I like to avoid two IF to test it.
charles wrote:well i think that the program he has weitten is making numbers other than in the range 0-1 so it is loosing time just making numbers
charles wrote:and further
what is wrong with this
if a!<1 then
if a!>0 then
daeghnao wrote:You'll need to study the manual of your floating-point system carefully and do a bit of testing to find out if it's feasible and if it's any faster than just writing out the comparisons. As said before though, depending on the application, you will likely be much better off using fixed-point algorithms.
Users browsing this forum: No registered users and 1 guest