Skip to content
IT Nursery
  • Home
  • Programming
    • PHP
    • C
    • C++
  • DataBase
    • MySQL
  • CMS
    • WordPress

double

C# Double – ToString() formatting with two decimal places but no rounding

by IT Nursery

How do I format a Double to a String in C# so as to have only two decimal places? If I use String.Format(“{0:0.00}%”, … Read more

Tags c, double, string

Why is a round-trip conversion via a string not safe for a double?

by IT Nursery

Recently I have had to serialize a double into text, and then get it back. The value seems to not be equivalent: double … Read more

Tags c, double, precision, tostring

How do I convert a double into a string in C++?

by IT Nursery

I need to store a double as a string. I know I can use printf if I wanted to display it, but I … Read more

Tags c, double, string

How to round a Double to the nearest Int in swift?

by IT Nursery

I’m trying to make a calculator of growth rate (Double) that will round the result to the nearest Integer and recalculate from there, … Read more

Tags double, int, rounding, swift

Compare double to zero using epsilon

by IT Nursery

Today, I was looking through some C++ code (written by somebody else) and found this section: double someValue = … if (someValue < … Read more

Tags c, double, floating-point

Float and double datatype in Java

by IT Nursery

The float data type is a single-precision 32-bit IEEE 754 floating point and the double data type is a double-precision 64-bit IEEE 754 … Read more

Tags double, floating-point, ieee-754, java

How do I convert a string to a double in Python?

by IT Nursery

I would like to know how to convert a string containing digits to a double. 3 Answers 3

Tags double, python, string

How do I parse a string with a decimal point to a double?

by IT Nursery

I want to parse a string like “3.5” to a double. However, double.Parse(“3.5”) yields 35 and double.Parse(“3.5”, System.Globalization.NumberStyles.AllowDecimalPoint) throws a FormatException. Now my … Read more

Tags c, double, parsing, string

biggest integer that can be stored in a double

by IT Nursery

What is the biggest “no-floating” integer that can be stored in an IEEE 754 double type without losing precision ? 8 Answers 8

Tags double, floating-point, ieee-754, types

How do I print a double value without scientific notation using Java?

by IT Nursery

I want to print a double value in Java without exponential form. double dexp = 12345678; System.out.println(“dexp: “+dexp); It shows this E notation: … Read more

Tags double, java
Post navigation
Older posts
Page1 Page2 … Page4 Next →

Important Tag

.net admin ajax android arrays bash c categories comments CSS custom-field custom-post-types custom-taxonomy customization database filters functions git hooks HTML images ios java javascript jQuery menus multisite MySQL node.js permalinks php plugin-development plugins posts python Shortcode sql string theme-development themes uploads users woocommerce-offtopic wp-admin wp-query

Recent Posts

  • INSTALL_FAILED_DUPLICATE_PERMISSION… C2D_MESSAGE
  • How to sort by meta value?
  • WPF text Wrap vs WrapWithOverflow
  • How to retrieve the list of all posts ever published via the feed?
  • how to use javascript Object.defineProperty

android c categories CSS custom-post-types custom-taxonomy customization database functions git HTML images java javascript jQuery multisite MySQL php plugin-development plugins posts python string theme-development wp-query

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Content from: Stack Exchange

Important Link

  • About
  • Privacy Policy

IT Nursery

The Goal of ITNursery Engaging the world to foster innovation through aggregate information. Our Question Answer post, blog information, products and tools help developers and technologists in life and at work.

copyright © 2023 All Right Reserved | IT NurSery