Simple Division | Arduino Compatible Compiler for LabVIEW Discussions | Forum

Avatar
Please consider registering
guest
sp_LogInOut Log In sp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSS sp_TopicIcon
Simple Division
February 26, 2018
8:33 pm
Avatar
mattFitz
Member
Members
Forum Posts: 11
Member Since:
February 19, 2018
sp_UserOfflineSmall Offline

Why does 2992 / 1000 = 2.000000?  Is the standard LabVIEW division not support? Do I have to use the quotient / remainder division?

Multiple by 0.001 works fine.  2992 * 0.001 = 2.992000

February 26, 2018
9:08 pm
Avatar
Steffan
Admin
Forum Posts: 408
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Its likely an issue with casting/coercion at the input of the divide primitive.  Try changing the 1000 constant to a double.  I believe one of the inputs needs to be a float for the casting to work.

Forum Timezone: UTC 0
Most Users Ever Online: 100
Currently Online:
15
Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
miche91: 33
scottj: 28
scadao: 23
Member Stats:
Guest Posters: 5
Members: 202
Moderators: 0
Admins: 3
Forum Stats:
Groups: 1
Forums: 2
Topics: 266
Posts: 1222
Newest Members:
pujacontrol
Administrators: geadmin: 22, filipealtoe: 96, Steffan: 356