---
title: "Discussion on \"How to cast (String <-> number, integer <-> decimal) in Java\" | Hashnode"
description: "Discussion on \"How to cast (String <-> number, integer <-> decimal) in Java\". String to number 문자 -> 숫자\nString strNum = \"10\";\nint i_num = Integer.parseInt(strNum); //return int\nint i_num2 = Integer.valueOf(strNum);//return integer, call parseInt \n\ndouble d_num = Double.parseDouble(strNum); //return double\ndouble d_num2 = Doubl..."
url: "https://hashnode.com/posts/how-to-cast-string-less-greater-number-integer-less-greater-decimal-in-java/62bf1302e4246414d3d31109"
---

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

Discussion

# [How to cast (String <-> number, integer <-> decimal) in Java](https://eunhanlee.hashnode.dev/how-to-cast-string-less-greater-number-integer-less-greater-decimal-in-java?utm_source=hashnode&utm_medium=feed)

String to number 문자 -> 숫자 String strNum = "10"; int i\_num = Integer.parseInt(strNum); //return int int i\_num2 = Integer.valueOf(strNum);//return integer, call parseInt double d\_num = Double.parseDouble(strNum); //return double double d\_num2 = Doubl...

Jul 1, 2022 · 1 min read · eunhanlee.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#casting](https://hashnode.com/tag/casting)
-   [#string-to-int](https://hashnode.com/tag/string-to-int)
-   [#int-to-string](https://hashnode.com/tag/int-to-string)
-   [#string-less-greater-number](https://hashnode.com/tag/string-less-greater-number)

## Written by

[Han](https://hashnode.com/@EunHaSu)

@EunHaSu · VA, US

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

Java, Android, Algorithm

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
