Top "Tostring" questions

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

Convert xml to string with jQuery

I'm loading an xml file with jQuery ajax loader, and need to convert it to a string so that I …

jquery xml xml-serialization tostring
Set up dot instead of comma in numeric values

I have new XmlDocument object, i.g. xml is created during my program... I want all numeric values in created …

c# xml tostring numeric culture
DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss") does not account my format

This is the code I have: DateTime.Now.AddMinutes(55).ToString("dd/MM/yyyy HH:mm:ss") The string I get …

c# datetime tostring
How to 'cout' the correct number of decimal places of a double value?

I need help on keeping the precision of a double. If I assign a literal to a double, the actual …

c++ double tostring precision
Is it possible to override JavaScript's toString() function to provide meaningful output for debugging?

When I console.log() an object in my JavaScript program, I just see the output [object Object], which is not …

javascript debugging tostring
Why does 0.ToString("#.##") return an empty string instead of 0.00 or at least 0?

Why does 0.ToString("#.##") return an empty string? Shouldn't it be 0.00 or at least 0?

c# c#-4.0 tostring
Javascript Date.toString() formatting?

Possible Duplicate: Formatting a date in JavaScript I have the following piece of script. It's a HTML5 slider with a …

javascript date timestamp tostring
How do I format a C# decimal to remove extra following 0's?

I want to format a string as a decimal, but the decimal contains some following zeros after the decimal. How …

c# format decimal tostring
Lua - Number to string behaviour

I would like to know how Lua handles the number to string conversions using the tostring() function. It is going …

c lua tostring
Is there anyway to handy convert a dictionary to String?

I found the default implemtation of ToString in the dictionary is not what I want. I would like to have {…

c# dictionary tostring