That's why I posted the code, so you could understand
A full wave goes from 0° to 360°
If you want to do 360 steps, you need 360°/360 = 1° steps
If you want to do 60 steps, you need 360°/60 = 6° steps
In your example, you do the following: ( Multiplying the angle# with PI changes the sine wave's period, multiplying the sine value with 45.0 changes the amplitude )
y#=sin ( angle# * PI ) * 45.0
angle# = angle# + 1.9
After 60 steps, your angle# is 60° * 1.9 = 114°
When calculating y#, you multiply the angle# by PI, so 114° * 3.1415927 = 358.14156°, which is almost 360°, which is a full circle, which 'resets' your sine wave
To obtain the 'magic' number IN YOUR EXAMPLE, you just have to do the following calculation: 360° / PI / 60 steps = 1,9098593171027440292266051604702
In MY EXAMPLE, I therefore just did 360° / steps, because I wasn't altering the period of the sine wave by multiplying it with PI or whatever value
(edit)
https://en.wikipedia.org/wiki/Sine_wave - Scroll down and have a look at the animated graphic 'Illustrating the cosine wave's fundamental relationship to the circle'
Cheers
PSY