Converting big integer value to string
-
Hi All, I want convert BIG integer value to string for that i used _strtoi64 that convert values still 9,223,372,036,854,775,807 but for big value greated than "9,223,372,036,854,775,807" it gives wrong value have i convert greated than "9,223,372,036,854,775,807" value to string??. .
-
Hi All, I want convert BIG integer value to string for that i used _strtoi64 that convert values still 9,223,372,036,854,775,807 but for big value greated than "9,223,372,036,854,775,807" it gives wrong value have i convert greated than "9,223,372,036,854,775,807" value to string??. .
You cannot convert values greater than the maximum allowed for a 64 bit integer.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
-
Hi All, I want convert BIG integer value to string for that i used _strtoi64 that convert values still 9,223,372,036,854,775,807 but for big value greated than "9,223,372,036,854,775,807" it gives wrong value have i convert greated than "9,223,372,036,854,775,807" value to string??. .
You already got answers to your same question in the Quick Answers question at [^]
-
Hi All, I want convert BIG integer value to string for that i used _strtoi64 that convert values still 9,223,372,036,854,775,807 but for big value greated than "9,223,372,036,854,775,807" it gives wrong value have i convert greated than "9,223,372,036,854,775,807" value to string??. .
Either the title or your explanation is wrong. I guess you need to convert a string representing a very big number to, well, a big integer variable. As Jochen pointed out, we already answered your question at QA. However, if you really don't want to use a big integer library then may you roll you own version of, say,
strtoi128
, i.e. a function converting the given string into the 128 bit binary representation of the number (you may mimic the method used at school to perform division).If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Either the title or your explanation is wrong. I guess you need to convert a string representing a very big number to, well, a big integer variable. As Jochen pointed out, we already answered your question at QA. However, if you really don't want to use a big integer library then may you roll you own version of, say,
strtoi128
, i.e. a function converting the given string into the 128 bit binary representation of the number (you may mimic the method used at school to perform division).If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]If it doesn't exist... make it yourself... +5
-
If it doesn't exist... make it yourself... +5
Thank you. However, I realize it would be a bit difficult for a newbie.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Thank you. However, I realize it would be a bit difficult for a newbie.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]Definitely... but it is worth noting that they can do it themselves if need be.