Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Round a Card4 value to nearest Integer
#1
I am lost on how can I round a Card4 variable value to the nearest integer in the Action Editor.
Or at least just loose the decimals following a Divide() arithmetic
Thanks
Reply
#2
If it's a Card4 variable it should never have any decimals, right? Only a float variable should ever end up with any decimal points. Are you seeing decimals on a Card4 variable?
Dean Roddey
Explorans limites defectum
Reply
#3
For just capping off a value the CapAt(var, index) command will do that. You would need to find the offset of the decimal point. The Find() command can do that.
Dean Roddey
Explorans limites defectum
Reply
#4
Thanks [blush]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Convert, truncate, or round command? IVB 1 1,252 03-28-2016, 09:32 AM
Last Post: Dean Roddey
  Unable to Compare non-integer floating point values zra 1 1,496 01-09-2016, 10:33 AM
Last Post: Dean Roddey
  [CML] Convert 3 byte Hex Value to Card4 Squintz 6 1,354 06-14-2008, 06:48 PM
Last Post: Squintz
  Typecast Card4 to Int4 wuench 3 1,109 12-05-2007, 09:36 AM
Last Post: wuench
  Conversion Card4 to Card8 wuench 2 1,150 10-26-2007, 06:10 AM
Last Post: wuench
  Floats vs Card4 Values pseigler 7 1,729 08-13-2007, 10:16 AM
Last Post: Dean Roddey
  string to integer in Actions? panos_k75 6 1,123 06-18-2007, 06:50 PM
Last Post: Dean Roddey
  Card8 and Card4 ToLower/ToUpper jscheller 1 963 12-30-2006, 07:12 PM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)