Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 21194

BASCOM-AVR : Exponent ^ with variable problem : NEWTOPIC

$
0
0
hello to all, i have problem with this : Dim A As single Dim B As single B = 2 A = B ^ 0.734 Print A [b:4e0c94915f]the result is 0.0 it is wrong![/b:4e0c94915f] but, if i don't use variable the result is correct! Dim A As single A = 2 ^ 0.734 Print A [b:4e0c94915f]the result is 1,6632 [/b:4e0c94915f] why this happened? how can i dessolve this problem ? thank you [b:4e0c94915f][color=red:4e0c94915f](BASCOM-AVR version : 2.0.7.6 , Latest : 2.0.7.6 )[/b:4e0c94915f][/color:4e0c94915f]

Viewing all articles
Browse latest Browse all 21194

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>