I was asked what is the best way to calculate the sine for a number within a RPG program? I know my answer frustrated the person who asked as I replied with “It depends”. I can think of two scenarios that I would use different approaches for: Calculate the sine for a value in a file or table’s field or column when “reading” the file or table Calculate the sine for a value calculated within a program In my examples I am going to also show how to calculate the cosine and tangent too. Read more » Read More