The Decimal Value in My LabVIEW Control Gets Rounded

Updated Aug 22, 2023

Reported In


  • LabVIEW

Issue Details

In my LabVIEW VI Front Panel, after entering a decimal value in a numeric control, I notice it gets rounded to the closest whole number. This happens even if I'm not running my VI.


This behavior is caused by the data type set for that numeric control. If it is an integer, then it will only accept whole numbers. To solve this, just change the data type to a double by following the next steps:

  1. Open the Block Diagram of your VI
  2. Right click on the Integer Control icon
  3. Click on Representation  
  4. On the menu choose Double Precision or DBL 

Additional Information

For more information check the Numeric Data Types  table to see what data types are supported in LabVIEW.