Loading ...
Sorry, an error occurred while loading the content.

Re: RE: [libertybasic] Decimal to Binary..........

Expand Messages
  • Mehboob Ashraf
    Hello Humberto bin$ = The string is enpty bin$ = 0 Meaning the bin$ has a value of 0 And bin$ = 0 + bin$ Meaning 0 is taken as a string not a number And
    Message 1 of 4 , Jul 31, 2002
    • 0 Attachment
      Hello Humberto

      bin$ = "" The string is enpty

      bin$ = "0" Meaning the bin$ has a value of 0
      And
      bin$ = "0" + bin$ Meaning 0 is taken as a string not a number
      And for next time the the string will add the string bin$

      Hare is a Example


      let bin$ = "0"

      for x = 1 to 5
      bin$ = "0" + bin$
      print bin$
      next x


      Ok

      I thing this will solve you problem!!!

      Mehboob



      At 7/30/2002 7:05:00 PM, you wrote:
      >
      >Questions of logic...
      >
      >bin$="" Means string variable bin$ is nothing
      >
      >but, bin$="0"+bin$ has me lost. I seem to be puzzled
      >by how this logic works. I am not seeing whats going
      >on in the Bin$ variables. Please clear me up on this.
      >
      >Humberto
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.