Announcement

Collapse
No announcement yet.

Convert value 32bit to 16bit.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • kayven@4d
    replied
    Hi Toragan,


    So far, I'm looking for solutions.

    If you have spare time, please check the demo project that I have attached, It will show how a 32-bit unsigned integer value is printed on an LEDdigits widget via string form.

    Hopefully by this will give you an idea.



    Best regards,
    Kayven
    Attached Files

    Leave a comment:


  • Toragan
    replied
    Hi kayven,
    • I see something strange in this project "https://forum.4dsystems.com.au/node/46519" the last 3 digits from unsigned Led Digit are decreasing and the first 7 digits are increasing. And it's the opposite for the signed value.
    • If you have an idea of how can I achieve to convert a 32bit value to 16bit value it's also interesting.

    Best Regards,
    Toragan

    Leave a comment:


  • kayven@4d
    replied
    Hi Toragan,


    I think the links below are what you are looking for.

    4D-CD-00004 ViSi-Genie Magic Arduino 32bit LED Digits
    This post might help you to get what you want to achieve especially, you are using ViSi Genie Environment.

    ledDigitsDisplay for unsigned long numbers
    If not visited yet, This forum thread has a posted function, wherein it is relevant to your concern.


    Best regards,
    Kayven

    Leave a comment:


  • Toragan
    started a topic Convert value 32bit to 16bit.

    Convert value 32bit to 16bit.

    Hi,

    I have a 32bit value and I like to put this value to a LedDigit, but all 4DGL value are in 16bit.
    How can I get my 32bit value and transform it in 16bit ?

    Ex: 78 968 (32bit) to (16bit).

    I have some ideas but i'm not really familiar with bit transformation.

    Have you already create a function to do that, or have you a simple solution.

    Ps: I looked at the forum but I didn't find something very interesting.

    Best Regards
    Toragan
Working...
X