Convert variable decimal to binary


+ Reply to Thread
Results 1 to 5 of 5

Thread: Convert variable decimal to binary2039 days old

  1. #1
    Pic
    Guest Pic's Avatar

    0 Not allowed!

    Default Convert variable decimal to binary

    Hello everyone
    I want to convert a variable byte decimal to a variable byte binary through a listing of proton is possible?
    Thanks to all

  2. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  3. #2
    Prolific Poster pic-ignorant's Avatar
    Join Date
    Oct 2007
    Posts
    2,942
    Thumbs Up
    Received: 26
    Given: 31
    Total Downloaded
    926.61 MB

    0 Not allowed!

    Default Re: Convert variable decimal to binary

    For DECvar = 0 to 255
    Print at 1,1, Bin8 DECvar
    delayms 100
    Next DECvar

  4. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  5. #3
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    2,374
    Thumbs Up
    Received: 87
    Given: 183
    Total Downloaded
    5.30 GB

    0 Not allowed!

    Default Re: Convert variable decimal to binary

    Perhaps I've misunderstood but there is nothing to convert. Decimal is just a human friendly way to express a value that the PIC sees as 0's and 1's. Does that help?

    George
    George.

  6. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  7. #4
    Pic
    Guest Pic's Avatar

    0 Not allowed!

    Default Re: Convert variable decimal to binary

    Thank you for having responded to me.
    The problem was fixed conversion l 'has made direct the pic

  8. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  9. #5
    Mark Harrington
    Guest Mark Harrington's Avatar

    0 Not allowed!

    Default Re: Convert variable decimal to binary

    Have a look at page 174 of the proton compiler manual

    On the IDE this is on the top menu bar As follows HELP >> Documents >>1: proton compiler manual
    Code:
    Example
    
    Var1 = 11
    Repeat
    Dec Var1
    Print Dec Var1, " "
    DelayMs 200
    Until Var1 = 0
    The above example shows the equivalent to the For-Next loop: -
    For Var1 = 10 to 0 Step -1
    Next
    See also : Inc.

  10. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Decimal Digit extract
    By John Drew in forum Proton Plus Compiler v3
    Replies: 0
    Last Post: 31st January 2017, 01:38
  2. More than three digits after the decimal point
    By pe1pme in forum Proton Plus Compiler v3
    Replies: 2
    Last Post: 23rd December 2015, 21:35
  3. Binary or decimal?
    By joesaliba in forum Proton Plus Compiler v3
    Replies: 12
    Last Post: 25th August 2008, 19:59
  4. [SOLVED !] 7segment Decimal Point Value
    By willim in forum Proton Plus Compiler v3
    Replies: 11
    Last Post: 26th April 2007, 19:49
  5. bcd to decimal
    By ADLIN SYSTEMS in forum Proton Plus Compiler v3
    Replies: 3
    Last Post: 31st March 2007, 14:24

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts