#include <iostream> #include <math.h> using namespace std; int main(){ //Binary to decimal: int n; cout<<"enter: "; cin>>n; int r, i=0, ans = 0; while(n!=0){ r = n/10; if((n%10)==1){ ans += pow(2, ...
This piece presents an utterly complicated topic - IEEE754 Standard - in its distilled form, so it's relatively short. I've been prohibited from sharing any of the problems from my lab sessions. Apologies for that. But I've tried hard to subside the ...
So... who am I? Just another software engineer/developer who likes to write things down and share what I've learnt. I find joy in being able to talk about and share the things that I've learned so others can learn from my experience (mistakes and bre...
When transitioning from JavaScript to Go, one encounters various differences in language syntax and data types. One such type in Go that might seem unfamiliar to JavaScript developers is the 'byte' type. It is an alias for the uint8 type. Memory Repr...
Simply Binary and Hexidecimal are different numbering systems. The numbering system we use in everyday life and math is base 10. 10 due to having the digits 0-9. There no innate reason to use base 10, we probably choose it as we have 10 fingers to co...