Omgili - forum search, search forums  
  

Discussions about decimals

Displaying 1 - 10 out of 29,340 discussions.  
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
Hi, I am using an ASP.NET GridView control with a TemplateColumn which has a TextBox in the ItemTemplate . I am binding the Text of the TextBox with the values from database. The database holds these values with five decimal points, and for the interface...
Started by on , 4 posts by 4 people.  
You could potentially add some sort of stored SQL procedure that would take the place of the column name that would do the compare before hand? Seems ... .
You could always validate that the data has indeed changed at all in that column before updating it .
I am writing a function to extract decimals from a number. Ignore the exception and its syntax, I am working on 2.5.2 (default Leopard version). My function does not yet handle 0's. My issue is, the function produces random errors with certain numbers...
Started by on , 7 posts by 7 people.  
In [49]: num Out[49]: 1.988 In [50]: ....
See extract_d time: 0.753302766373 As Ned Batchelder said, not all decimals are exactly representable.
The problem is that (binary) floating point numbers aren't precisely representable as decimals.
Hi Guys, I have a textbox for 'Area '.I need a regularexpression to validate textbox such that it should allow decimals to enter but no characters.Anyone can help me
Started by on , 9 posts by 9 people.  
(dot without decimal) You have lots.
'^[0-9]*$' If you want decimals, this should work: /^(?:\d+\.?)|(?:\d*\.\d+)$/ What is the format with one or two decimals, but would not work with 34.
Ask your Facebook Friends
Using the following code snippet: (fromIntegral 100)/10.00 Using the Haskell '98 standard prelude, how do I represent the result with two decimals? Thanks.
Started by on , 3 posts by 3 people.  
You can use printf :: PrintfType r => String -> r from Text.Printf : Prelude> import Text.Printf Prelude Text.Printf> printf "%.2f\n" (100 :: Float) 100.00 Prelude Text.Printf> printf "%.2f\n" $ fromIntegral 100 / 10.00 10.00 %f formats... .
I've always been curious: how can I perform arithmetic operations on very long decimals--for example, calculating pi to the 3000th decimal place (especially in an imperative language)?
Started by on , 5 posts by 5 people.  
For keeping track of how many decimals to shift over by to get a sort of arbitrary precision floating point.
Hello, I have joomla 2.5 and virtuemart 2.0.6. I have configured prices to show it without decimals, but in the car and in the invoice they are with decimals. How can i do to show everytime without decimals?. Thank you very much.
Started by on , 1 posts by 1 people.  
I'm using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0.1123456789 0.11234567891 0.11234567899 The 10 decimal ...
Started by on , 6 posts by 6 people.  
Multiply by 1....
Thanks.
What about multiplying by 10^10 and dropping the fractional part? decimal x2 = Math.Truncate(x * 1 ); decimal y2 = Math.Truncate(y * 1 ); Assert.Equals(x2, y2); EDIT: Changed to Math.Truncate by Aaron's suggestion.
Having : var Difference: DWORD // difference shows in milliseconds // List.Items.Count can be any 0 to [...] sb.panels[2].Text := FloatToStr((((List.Items.Count) / difference) / 1000)); I want to format the resulting text to any ###.## (two decimals)....
Started by on , 4 posts by 4 people.  
See this link Why don't you use format function with format strings ? Example: sb.panels[2].Text := Format('%8.2f',[123.456]); Other functions would be function FormatFloat(const Format: string; Value: Extended): string; overload; function FormatFloat... .
So, I have a decimalfield that can be 3 different values. In my view, I pass in a dictionary of values that contains the appropriate decimal values as keys. {% for item in booklist %} {% for key, value in numvec.items %} {{item.number}} {% ifequals item...
Started by on , 4 posts by 4 people.  
Or you can write a....
Simplest solution is to define a method on the model which encapsulates the numeric logic and returns the human-friendly string .
I'd make my own template tag if I were you .
According to this , it seems you can only compare strings .
I'd like to group the digits in a double by thousands, but also output however number of decimals are actually in the number. I cannot figure out the format string. 1000 => 1,000 1 => 100,000 123.456 => 123.456 1 .21 => 100,000.21 100200.1...
Started by on , 6 posts by 6 people.  
However, since you can only store a very limited precision, you can just use that and add the commas for thousands et al, but I don't know if it will keep the decimals, otherwise.
Of decimals.
Page: 1   2   3   4   5   6   7   8   9   10  

Related Message Boards & Forums

  • Stack Overflow
  • General Questions VM 2
Related Searches
SSIS decimal    convertir a decimal 10 2 sql    php for-loop decimal    decimal increments in for loop    redondear numero decimal c    decimal into text field    access report limit decimals    restrict decimals actionscript 3    vba loop by decimal    "decimal point"   
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost