11-10-2008
Downloads: 330
File size: 151 B
Views: 5,292
Embed
 |
Convert decimal to binary to hexadecimal and vice versa |
- $number = 12756576
- [Convert]::ToString($number, 2)
- [Convert]::ToString($number, 16)
-
- $binary = '1110111000010001'
- [Convert]::ToInt64($binary, 2)
Uses the .NET class "Convert" to convert numbers and easily turn decimals in binaries or hexadecimals in octals.