How do i convert from string to int in F#?
As an example i'd like to pass
let someString = "123
to let someInt = 123
I cant really find any parse methods that work for me..
This question is not about parsing from int to String, but string to int. Not duplicate of a related question.
Any ideas?
Thanks in advance
Try built-in int
function.
let someString = "123"
let someInt = someString |> int // someInt now contains 123 int value
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With