Welcome To Golang By Example

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

Tag: number

Golang Regex: Match a floating-point number in Regular Expression

Posted on July 7, 2021July 7, 2021 by admin

Overview A floating-point number could have below properties It could have a negative and positive sign The integer part could be optional when the decimal part is present The dot and decimal…

Get ASCII code/value of any Alphabet or Number in Go (Golang)

Posted on April 17, 2020April 17, 2020 by admin

range over a string can give the ASCII of all the characters in the string. In below code we are printing the ASCII value of a lowercase alphabets, uppercase alphabets and numbers….

Check if a number is negative or positive in Go (Golang)

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

Overview math package of GO provides a Signbit method that can be used to check whether a given number is negative or positive. It returns true for a negative number It returns…

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…

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…

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