Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6524

declaration d'un float

$
0
0

Bonjour

 

je commence à me familiariser avec l'outil de test TestStand et j'ai une petite question concernant la declaration d'une constant Float sur 4Bytes.

y -t-il un syntaxe precis pour ce type de variable? par exemple pour la declaration d'un entier sur 4 bytes j'utilise le syntaxe suivant :

Locals.Data[0] = (10000 & 0xFF000000) >> 24,
Locals.Data[1] = (10000 & 0x00FF0000) >>16,
Locals.Data[2] = (10000 & 0x0000FF00) >>8,
Locals.Data[3] = (10000 & 0x000000FF) ,

 

et si je veux par exemple déclarer un float = 10000.6?????

 

Merci


Viewing all articles
Browse latest Browse all 6524

Trending Articles



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