[8] Results

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

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

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

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

Golang : Display float in 2 decimal points and rounding up or down

golang math-pow float round-up round-down decimal-points

We will cover 2 items for this tutorial.

First, we will learn how to display a float number in….... read more

Golang : Round float to precision example

golang float round-precision round-up round-down decimal-points

Just an add on for my previous tutorial on how to round up or down a float number.….... read more

Golang : Convert IPv4 address to decimal number(base 10) or integer

golang ip-address decimal-base-10 integer

Problem :

IP address in decimal is easier to search, filter or compare. For example, searching for IP address in….... read more

Golang : Convert decimal number(integer) to IPv4 address

golang ip-address decimal-base-10 bitwise-or

Problem :

You've read the previous tutorial on how to convert IPv4 address to decimal number and store….... read more