From HEX to DEC and back

Why do computer nerds mix up Halloween and Christmas? Because 31 OCT = 25 DEC 🙂

I always mix up the commands used to convert integers to and from decimal, hexadecimal and octal in Powershell. That’s why I wrote these functions and put them in my profile:

# Description: Coverts a decimal into a hexadecimal

function Convert-DECtoHEX
{
param($DEC)
ForEach ($value in $DEC)
{
“{0:x}” -f [Int]$value
}
}

# Description: Coverts a hexadecimal into a decimal

function Convert-HEXtoDEC
{
param($HEX)
ForEach ($value in $HEX)
{
[Convert]::ToInt32($value,16)
}
}

# Description: Coverts an octal into a decimal

function Convert-OCTtoDEC
{
param($OCT)
ForEach ($value in $OCT)
{
[Convert]::ToInt32($value,8)
}
}

Here are some example uses:
<img data-attachment-id="281" data-permalink="http://www.peetersonline.nl/2009/01/from-hex-to-dec-and-back/2009-01-19_112552/" data-orig-file="https://i1.wp.com/www.peetersonline.nl/wp-content/uploads/2009-01-19_112552.jpg?fit=310%2C346" data-orig-size="310,346" data-comments-opened="1" data-image-meta="{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":""}" data-image-title="2009-01-19_112552" data-image-description="" data-medium-file="https://i1.wp.com/www.peetersonline.nl/wp-content/uploads/2009-01-19_112552.jpg?fit=268%2C300" data-large-file="https://i1.wp.com/www.peetersonline.nl/wp-content/uploads/2009-01-19_112552.jpg?fit=310%2C346" class="alignnone size-full wp-image-281" title="2009-01-19_112552" src="https://i0.wp.com/www.peetersonline.nl/wp-content/2009-01-19_112552.jpg?resize=310%2C346" alt="2009-01-19_112552" srcset="https://i1.wp click to find out more.com/www.peetersonline.nl/wp-content/uploads/2009-01-19_112552.jpg?w=310 310w, https://i1.wp.com/www.peetersonline.nl/wp-content/uploads/2009-01-19_112552.jpg?resize=268%2C300 268w” sizes=”(max-width: 310px) 85vw, 310px” data-recalc-dims=”1″ />

Emilia Cirker: My friends and family tell me that my food is the place where tradition and change meet; I like to honor culturally rich, ethnically rich heritages dishes, but put a new spin on them. EA Replica Oakley Sunglasses in their press release said John recused himself during the board meeting where the acquisition was discussed, but that is a total joke. While the latter has been the hot name since his performance in the combine and pro day, the former appears to Fake Oakleys be more NFL ready and will be the number one overall pick in the 2016 http://www.cheapraybansunglasseser.com draft.. It will increase your strength and will also give you a good workout. 2. Nobody touches me without my permission. St. Her bare back is towards the camera. Add in Wholesale Jerseys book sales and merchandising, and it’s probably around $25 billion, and that’s not counting the theme park. Over at CBS Sports we are coming off another incredible NFL season, and this time was the third time in four years that we topped Fox in the all important post season, beating Fox’s NFC Championship by 13%. Dance team dancers are fairly easy for an accomplished eye to spot as their style tends to be unique to them. Either way, the Packers and Vikings will likely be both winners and losers after Sunday, but in very different ways.. Just report them. Oh and the people that say only a Mother and Father can raise I child? 1 Kids that are raised in the Nuclear family are not perfect just look around. No matter how oakley sunglasses good it gets; it’s only so much, and only now are we beginning to wake up to what St. Call the cable company you have selected and set up an appointment for service installation. “Jack” Lee Jr., who found himself taunting the Gods of Movie Cliches by going on one final big mission right before the war was about to end, which he was more than happy to oblige.. Last week: 1USA TODAYUSA TODAY Sports Week 7 NFL picksT2. Authentic Jerseys Wholesale It was out of date when it hit the newsstand and will cause the other coaches to laugh at you.. Raise the arms out to the side, then slowly lower them. Number two, I might be able to go to the back, out of a flat, but if the corner’s squatting, that’s a pick six, it’s going the other way, no good. He used to shoot a Cheap NFL Authentic Jerseys large format camera, positioned in the outfield in the foul section behind third base. OCT instruments employing the Fourier domain technology have significantly higher resolution and scan speed, improved image segmentation and better measurement reproducibility compared with the time OCT.1, 2, 3, 4, 5, 6 Though the technology is new, information on the diagnostic accuracy of the different Fourier domain OCT instruments to detect glaucoma of different severity, is increasing.5, 6, 13, 14, 15, 16, 17, 18, 19, 20, 21The RTVue 100 OCT (Optovue Inc., Fremont, CA, USA) is one of the new commercially available Fourier domain OCT instruments.1, 2, 3, 4, 17, 18, 19, 20, 21 Its axial resolution is approximately 5 and the scan speed is 26 A scans per second.