News:

  • June 28, 2026, 09:36:34 PM

Login with username, password and session length

Author Topic: Casting Confusion  (Read 9913 times)

davidbgtx

  • Hero Member
  • *****
  • Posts: 215
  • Host be the Most
Casting Confusion
« on: September 27, 2017, 04:24:59 PM »
When I enter a not equal C416:D it changes it to c416:SD, does that stand for signed double word?
I'm trying to check through many alarm bits (c416-c471)with an easy statement, so I have not equal c416:d and not equal c448:d, which should test for c416-c480,correct??

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Re: Casting Confusion
« Reply #1 on: September 27, 2017, 04:30:51 PM »
When I enter a not equal C416:D it changes it to c416:SD, does that stand for signed double word?
I'm trying to check through many alarm bits (c416-c471)with an easy statement, so I have not equal c416:d and not equal c448:d, which should test for c416-c480,correct??

Correct on all points.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

davidbgtx

  • Hero Member
  • *****
  • Posts: 215
  • Host be the Most
Re: Casting Confusion
« Reply #2 on: September 27, 2017, 04:33:10 PM »
When I enter a not equal C416:D it changes it to c416:SD, does that stand for signed double word?
I'm trying to check through many alarm bits (c416-c471)with an easy statement, so I have not equal c416:d and not equal c448:d, which should test for c416-c480,correct??

Correct on all points.

So why does it automatically change to :SD when I enter it as c416:D
« Last Edit: September 27, 2017, 04:35:02 PM by davidbgtx »

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Re: Casting Confusion
« Reply #3 on: September 27, 2017, 04:35:43 PM »
So why does it automatically change to :SD when I enter it as :D

When you cast from a bit to a non-bit, it implicitly adds a data type, since there isn't one.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

davidbgtx

  • Hero Member
  • *****
  • Posts: 215
  • Host be the Most
Re: Casting Confusion
« Reply #4 on: September 27, 2017, 04:38:57 PM »
Thanks,
Well that was weird ,when I typed colon D in my post it changed it to a smiley face emojicon

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Re: Casting Confusion
« Reply #5 on: September 27, 2017, 04:41:06 PM »
Thanks,
Well that was weird ,when I typed colon D in my post it changed it to a smiley face emojicon

Yeah. That one has bit me before.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO