number length and sin Q

Hi i have questions
first i make calculator

when the result be 0 its showed as 0.0 knowing that variable ASDouble
 
thank you

but i have another problem when i use sin cos
ex sin30 = 0.4999999999999
why this happen
i use this equ SinD(lbl.text)
and in cos its fine but it showing like this
cos 60 = 0.50000000000000

please any fix to this proplem
thanks
 
Upvote 0
when i'm using numberformat it will not help me
ex i use lbl_Result.Text = NumberFormat(CosD(lbl_Result.Text),0,1)

cos(60) = 0.5 its fine
cos(30) = 0.9 this is the problem

how i could make cos(60) = 0.5 cos(30) = 0.866025 at the same
thanks
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…