---
title: "Discussion on \"converting strings to numbers\" | Hashnode"
description: "Discussion on \"converting strings to numbers\". Create the main.go file with the following content:\npackage main\n\nimport (\n    \"fmt\"\n    \"strconv\"\n)\n\nconst bin = \"00001\"\nconst hex = \"2f\"\nconst intString = \"12\"\nconst floatString = \"12.3\"\n\nfunc main() {\n\n    // Decimals\n    res, err := strconv.Atoi(..."
url: "https://hashnode.com/posts/converting-strings-to-numbers--deleted/6280e8a00094f2f13f515fe0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [converting strings to numbers](https://blog.cloudnativefolks.org/converting-strings-to-numbers--deleted?utm_source=hashnode&utm_medium=feed)

Create the main.go file with the following content: package main import ( "fmt" "strconv" ) const bin = "00001" const hex = "2f" const intString = "12" const floatString = "12.3" func main() { // Decimals res, err := strconv.Atoi(...

May 15, 2022 · 2 min read · blog.cloudnativefolks.org  
Read the article

## Written by

[Sangam Biradar](https://hashnode.com/@sangambiradar)

@sangambiradar · India

  
[View profile](https://hashnode.com/@sangambiradar)

AI Security

DevRel at StackGen | Formerly at Deepfence ,Tenable , Accurics | AWS Community Builder also Docker Community Award Winner at Dockercon2020 | CyberSecurity Innovator of Year 2023 award by Bsides Bangalore | Docker/HashiCorp Meetup Organiser Bangalore &amp; Co-Author of Learn Lightweight Kubernetes with k3s (2019) , Packt Publication &amp; also run Non Profit CloudNativeFolks / CloudSecCorner Community To Empower Free Education reach out me twitterhttps://twitter.com/sangamtwts or just follow on GitHub -&gt; https://github.com/sangam14 for Valuable Resources

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
