decimal
PHP - floatval cuts of position after decimal point?
I have this PHP code: <?p开发者_JS百科hp $float = \"1,99\"; echo \"<p>$float<br>\"; $float = floatval($float); // Without this line number_format throws a notice \"A non well formed nu[详细]
2023-04-09 10:41 分类:问答Rounding using regular expressions
Is it possible to use a regular expression to perform rounding on a number? The problem is that I\'ve got a lot of numbers to more than 2 decimal places in a file and I need to move them to 2 decimal[详细]
2023-04-08 20:03 分类:问答Decimals to 2 places for money in Python 3
How do I get my decimals to stay at 2 places for representing money using the decimal开发者_Go百科 module?[详细]
2023-04-08 18:54 分类:问答Problem passing decimal value to database (Access)
I want to pass decimal value to database table. When I send value 1,5 to database then save value as 15.[详细]
2023-04-08 13:30 分类:问答Dividing decimals yields invalid results in Python 2.5 to 2.7
After a very thorough read of the Python\'s decimal module documentation, I still find myself puzzled by what happens when I divide a decimal.[详细]
2023-04-08 06:01 分类:问答Java escaping chars that already exist in the string
I need to escape chars that exist within a string but the escape chars are part of the escape code ie.[详细]
2023-04-07 10:52 分类:问答How to convert integer to decimal point in PROLOG?
How to convert integ开发者_高级运维er to decimal point in PROLOG? Example, imagine I assign Integer = 10[详细]
2023-04-07 10:00 分类:问答Check precision to nth decimal place?
I have to calculate the values of a hot plate and have it accurate only to the first decimal place. I am stumped on trying to figure out how to check all the array values if they changed. I found out[详细]
2023-04-06 09:20 分类:问答Why decimal.Parse(10 10) is valid?
Why decimal.Parse(10开发者_JAVA百科 10) is valid? I need to get exception in such case. Please advise me something.[详细]
2023-04-05 21:28 分类:问答decimal to hex conversion in C
I need to conver decimal numbers to 4 digit lower-case hex numbers prefixed by 0x. \"%X\" is good enough, but this is not exactly what I want.[详细]
2023-04-05 10:46 分类:问答