Skip to content
IT Nursery
  • Home
  • Programming
    • Mac / IOS
    • Android
    • Web Applications
    • PHP
    • Java
    • C
    • C++
  • DataBase
    • MySQL
  • CMS
    • WordPress
  • System and Network
    • Serverfault

double

How to convert Decimal to Double in C#?

by IT Nursery

An explicit cast to double like this isn’t necessary: double trans = (double) trackBar1.Value / 5000.0; Identifying the constant as 5000.0 (or as … Read more

Tags c, decimal, double, floating-point, type-conversion

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. Best Answer 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 ? Best Answer 8

Tags double, floating-point, ieee-754, types
Older posts
Page1 Page2 … Page4 Next →

Recent Posts

  • Advice for improving internal dashboard [closed]
  • grep : ‘+’ special character
  • File location for Syslogs in Centos machine
  • How to collect users’ task completion times?
  • “service {FOO} start” vs. “/etc/init.d/{FOO} start”? [closed]
IT Nursery
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Important Link

  • About
  • Privacy Policy
  • Contact

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
x
x