Welcome To Golang By Example

Menu
  • Home
  • Blog
  • Contact Us
  • Support this website
Menu

Tag: go

Break number into integer and fraction parts in Go (Golang)

Posted on March 28, 2020March 28, 2020 by admin

Overview math package of GO provides a Modf method that can be used to break a floating-point number into integer and floating part. Please note that the integer part is also returned…

Remainder or Modulus in Go (Golang)

Posted on March 28, 2020March 28, 2020 by admin

Overview In this tutorial we will study about % Operator – applicable to get remainder for integers Mod function – can be used to get remainder in case of floats also Remainder…

Log of number in Go (Golang)

Posted on March 28, 2020March 28, 2020 by admin

Overview In this tutorial, we will see three types of logarithm possible Natural logarithm Binary Exponent Log (log e) Binary Log (log 2) Decimal Log (log 10) Natural logarithm math package of…

Square Root of a number in Go (Golang)

Posted on March 26, 2020March 26, 2020 by admin

Overview math package of GO provides a Sqrt method that can be used to get the cube root of that number. Below is the signature of the function. It takes input a…

Cube Root of a number in Go (Golang)

Posted on March 26, 2020March 26, 2020 by admin

Overview math package of GO provides a Cbrt method that can be used to get the cube root of that number. Below is the signature of the function. It takes input a…

Get absolute value of a number in Go (Golang)

Posted on March 26, 2020March 26, 2020 by admin

Overview math package of GO provides an Abs method that can be used to get the absolute value of a number. Below is the signature of the function. It takes input a…

Remove decimal points from a float in Go (Golang)

Posted on March 25, 2020March 26, 2020 by admin

Overview math package of GO provides a Trunc method that can be used to remove decimal points of a float and convert it to an integer Below is the signature of the…

Round Even a number in Go (Golang)

Posted on March 25, 2020March 25, 2020 by admin

Overview math package of GO provides a RoundToEven method that can be used to round to even a number. It returns the nearest integer rounding ties to even. Here you can read…

Floor of a number in Go (Golang)

Posted on March 25, 2020March 25, 2020 by admin

Overview math package of go provides a Floor method that can be used to get the ceil of a number. Floor of a number is the greatest integer value less than or…

Create count/repeating copies of a string in Go (Golang)

Posted on March 22, 2020March 22, 2020 by admin

Overview strings package of GO provides a Repeat method that can be used to create repeating copies of a given string. It takes input as the number of counts. Below is the…

Posts pagination

Previous 1 … 38 39 40 … 44 Next
Follow @golangbyexample

Popular Articles

Golang Comprehensive Tutorial Series

All Design Patterns in Go (Golang)

Slice in golang

Variables in Go (Golang) – Complete Guide

OOP: Inheritance in GOLANG complete guide

Using Context Package in GO (Golang) – Complete Guide

All data types in Golang with examples

Understanding time and date in Go (Golang) – Complete Guide

©2025 Welcome To Golang By Example | Design: Newspaperly WordPress Theme