Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 07d2790

Browse files
Hex to Decimla
1 parent 3907cea commit 07d2790

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

‎InterviewPrograms/src/com/java/convertor/HexaToDecimal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* - because hexadecimal digits contains alphabets also
2727
* {0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F}
2828
* - multiply the numeric value with power of 16 to pow variable
29-
* - add the above result with
29+
* - add the above result with decimal variable
3030
* - increment the pow variable
3131
* - continue all the above steps for all the digits of hex
3232
* - read the digits from the reverse direction

‎InterviewPrograms/src/com/java/convertor/OctalToDecimal.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
* decimal = 1 * 64 + 4 * 8 + 4 * 1
4444
* decimal = 64 + 32 + 4
4545
* decimal = 100
46-
*
4746
*/
4847

4948
public class OctalToDecimal {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /