gas Member G Join Date Nov 2005 Location Erie, Pa Posts 531 Jun 5, 2020 #1 Logix5000 Converted DINT to REAL. Now...How to clear the decimal point? Thanks in advance
parky Member P Join Date Oct 2004 Location Midlands Posts 5,760 Jun 5, 2020 #2 What do you mean ? clear decimal point, why convert it to a real in the first place ? do you mean remove the decimals for example 123456.78 to 123456.0 ? Please supply more information or nobody will help you.
What do you mean ? clear decimal point, why convert it to a real in the first place ? do you mean remove the decimals for example 123456.78 to 123456.0 ? Please supply more information or nobody will help you.
gas Member OP G Join Date Nov 2005 Location Erie, Pa Posts 531 Jun 5, 2020 #3 Thank you My question exactly. Please put this on hold for a while
Bit_Bucket_07 Member Join Date Feb 2013 Location Southeast US Posts 1,875 Jun 5, 2020 #4 If you don't want decimal places, then use a 64 bit LINT, rather than a Real data type.
Aabeck Member Join Date Feb 2013 Location Detroit Posts 1,860 Jun 5, 2020 #5 If a DINT is converted to a REAL wouldn't the decimal always be ".0"? If that is what you are trying to get rid of I don't think it is possible.
If a DINT is converted to a REAL wouldn't the decimal always be ".0"? If that is what you are trying to get rid of I don't think it is possible.
BachPhi Member Join Date Dec 2007 Location Los Alamos Posts 640 Jun 8, 2020 #6 we need a crazy answer to his silly question!