[25] Results

Golang : Convert IP version 6 address to integer or decimal number

golang ip-version-6 integer decimal-number

Problem :

You have IP address version 6 in string format and you want to convert it into integer. How….... read more


Python : Convert IPv6 address to decimal and back to IPv6

python IPv6 decimal

Problem :

Need to convert IPv6 address to decimal number and convert back to IPv6. How to do that?

Solution….... read more


Generate Random number with math/rand in Go

random-number

Random number is useful in many application. One such example is salting password to make in more secure. In this….... read more


Random number generation with crypto/rand in Go

random-number

Random number is useful in many applications. From salting password to enabling secure transactions.

In this tutorial, we will….... read more


Golang : Accurate and reliable decimal calculations

golang float decimal-accuracy calculation

If you have been programming for a long time, chances are you will be aware of a well-known issue with….... read more


Golang : Test if an input is an Armstrong number example

golang armstrong number cubic

An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is….... read more


Golang : How to convert a number to words

golang translate-number-to-words convert-number

I need to translate a given number into words such as 100 to one hundred. The code below is a….... read more


JavaScript : Rounding number to decimal formats to display currency

javascript rounding tofixed decimal-points currency-money

Was looking for ways to round up float numbers to 2 decimal points and also to display currency with Javascript.….... read more


Advertisement

Advertisement