Advertisement
ASP_Volume3 Math/ Dates #44477

Converting Decimal numbers to Binary

A function for converting decimal numbers to binary. Very fast.

AI

Yapay Zeka Özeti: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Kaynak Kod
original-source
Private Sub Command1_Click()
DecValue = Val(Text1.Text)
BinValue = ""
Do
TempValue = DecValue Mod 2
  BinValue = CStr(TempValue) + BinValue
DecValue = DecValue \ 2
Loop Until DecValue = 0
'Print
'Print BinValue
Text2.Text = BinValue
End Sub

Upload
Orijinal Yorumlar (3)
Wayback Machine'den kurtarıldı