Omgili - forum search, search forums  
  

Discussions about decimals

Displaying 1 - 10 out of 39,138 discussions.  
RSS Feed Options
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.
When 2 decimal(30,10) numbers are divided in Sql Server 05, 2 last decimals seem to be getting lost (not even rounded off, simply truncated). For example: Declare @x decimal(30,10) Declare @y decimal(30,10) Declare @z decimal(30,10) select @x = 2.1277...
Started by on , 3 posts by 3 people.  
The maximum....
This helps to explain why division by those values comes up short of your expectations .
When you assign @x and @y to literal values, they are probably adopting the precision of those literals .
In short, use casting to guarantee your results.
Ask your Facebook Friends
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.
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.
I would like to find out what is the optimum way of storing some common data type that were not included in the list supported by protocol buffers. datetime (seconds precision) datetime (milliseconds precision) decimals with fixed precision decimals with...
Started by on , 4 posts by 4 people.  
decimals....
decimals in this thread .
And (for financial applications) fixed point decimals, or map them to language-specified or user-defined types representation for date/time, but you can also localize to whatever time zone is pertinent.
Lets say that input from the user is a decimal number, ex. 5. 2155 (having 4 decimal digits). It can be stored freely (int,double) etc. Is there any clever (or very simple) way to find out how many decimals the number has? (kinda like the question how...
Started by on , 8 posts by 8 people.  
A double is stored in a binary form, so no obvious ... .
E.g: .2155 * 10 = 2.155 .155 * 10 = 1.55 .55 * 10 = 5.5 .5 * 10 = 5.0 4 steps = 4 you mean "stored freely (int"? Once stored in an int, it has zero decimals left, clearly.
Of decimals.
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.
Note: I've already read this topic , but I don't understand it and it doesn't provide a solution I could use. I'm terrible with number problems. What's a simple way to generate Pi to what number of decimals a user wants? This isn't for homework, just ...
Started by on , 3 posts by 3 people.  
This way of calculating PI is kind of slow, i suggest you to look ... .
Using the function "double F (int i)" wrote on that topic will give you the value of PI after "i" terms .
The topic your talking about calculate the value of PI using the taylor series .
Page: 1   2   3   4   5   6   7   8   9   10  
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