vb.net - programing ranging data -


i have 2 inputs 0-180 x , y need add them , stay in range of 180 , 0 having trouble since 90 mid point cant seem keep data in range im doing in vb.net need logic

result = (x + y) / 2 

perhaps? @ least stay in 0-180 range. there other constraints you're not telling about, since right seems pretty obvious.


Comments

Popular posts from this blog

mysql - How to insert just year and month into date field? -

mod rewrite - Doing external redirect. .htaccess NS flag not working. How to achieve similar results? -