Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

how to classify correctly: Int, Float & Binary

$
0
0

Hi forum,

 

I try a simple way to classify correctly a number between INT, FLOAT and BINARY, without sucess...

Binary number always return how INT... but is not true.

 

Someone can help-me here?

Thanks

Local $arr[3] = [1, 1.5, 0x020] For $each In $arr     ConsoleWrite('[' & $each & '][' & numType($each) & ']' & @LF) Next Func numType($input)     Select         Case IsFloat($input)             Return 'Float'         Case IsInt($input)             Return 'Int'         Case IsBinary(Binary($input))             Return 'Binary'     EndSelect EndFunc   ;==>numType

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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