Top "Tostring" questions

"toString" or "ToString" is a major formatting method or function used in high level programming languages.

Negative numbers to binary string in JavaScript

Anyone knows why javascript Number.toString function does not represents negative numbers correctly? //If you try (-3).toString(2); //shows "-11" // …

javascript numbers tostring
Converting NodeList to String in Java

I'm trying to convert NodeList to String so I can manipulate it in whichever way I want, but I can't …

java xpath tostring nodelist
Can Javascript get a function as text?

Can Javascript get a function as text? I'm thinking like the inverse of eval(). function derp() { a(); b(); c(); } alert(…

javascript reflection function tostring
Making a user-defined class std::to_string(able)

I know it seems too much Java or C#. However, is it possible/good/wise to make my own class …

c++ string c++11 tostring
C# ToString("MM/dd/yy") remove leading 0's

Possible Duplicate: Format .NET DateTime “Day” with no leading zero Is there a way to remove the leading zeros in …

c# date tostring
JPA: java.lang.StackOverflowError on adding toString method in entity classes

Everything worked fine until I added toSting() in my entity classes. After which I start getting the following error in …

hibernate stack-overflow jpql tostring jpa-2.1
Does DateTime.ToString("s") return always same format?

According to MSDN on DateTime.ToString ToString("s") should always return string in the format of the sortable XML Schema …

datetime tostring cultureinfo regional
What is the best standard style for a toString implementation?

We have a lot of objects for which we like to implement a simple toString to output attributes of the …

java php javascript actionscript tostring
Reverse (parse the output) of Arrays.toString(int[])

Is there in the JDK or Jakarta Commons (or anywhere else) a method that can parse the output of Arrays.…

java serialization tostring
Why Is ToString() Rounding My Double Value?

How do I prevent my double value from being rounded when converting to a string? I have tried both Convert.…

.net rounding tostring