Omgili - forum search, search forums  
  

Discussions about decimals divis

Displaying 1 - 10 out of 474 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.
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....
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.
Is there an algorithm for figuring out the following things? If the result of a division is a repeating decimal (in binary). If it repeats, at what digit (represented as a power of 2) does the repetition start? What digits repeat? Some examples: 1/2 =...
Started by on , 6 posts by 6 people.  
I can give a hint - repeating decimals in base ten are all fraction.
Of a fraction.
Ask your Facebook Friends
ALTER FUNCTION GetDecimalFromDivided(@interger1 INT, @interger....
Cheers Try this select cast(ROUND(2/3.0, 2) as decimal(2,2)) Hope that will help.
SELECT ROUND(2.0/3.0, 2) Hi Select cast(2.0/3.0 as decimal(3,2)) as result , should help.
Hi Experts, I need to process a wage type through a rule in the payroll schema such that: N = 80 hours divided by 12 I need to ignore the decimals i.e. I need 6 as the output of the division instead of 6.66 How do I proceed ? Regards, Somdeb.
Started by on , 5 posts by 2 people.  
Answer Snippets (Read the full thread at sap):
It will be great if I am able to manage this through... .
However I intend to process only one wage type in this manner out of the whole lot of wage types in the IT Table .
Check the documentation of XDECI Function in PE04 Hi Sikindar, Thank you for the learning .
I'm having a hard time teaching him division of decimals such as: 1 / .04 We are using MM5, and I for the first time we are finding her explanation lacking. He thinks that since you are dividing, the answer has to be less than one. I'm having a hard time...
Started by on , 10 posts by 6 people.  
FWIW, I love.
Maybe we'll skip decimals and move on to fractions, and revisit decimals later.
Point.
I have thought about this question my whole life, and I do not agree that they have no end. At some point, when you are dividing something, you reach the atomic level. You cannot split an atom into thirds- the world would blow up! Blessings, Jai
Started by on , 11 posts by 7 people.  
And I agree with what Vesuvius and Wade Casaldi have said .
Concept, repeating decimals have no end.
I have some code to convert a time value returned from QueryPerformanceCounter to a double value in milliseconds, as this is more convenient to count with. The function looks like this: double timeGetExactTime() { LARGE_INTEGER timerPerformanceCounter...
Started by on , 3 posts by 3 people.  
It throws....
You are correct about the size of the numbers.
Then cast the resulting number back to double.
Adion, If you don't mind the performance hit, cast your QuadPart numbers to decimal instead of double before performing the division.
I need some division algorithm which can handle big integers (128-bit). I've already asked how to do it via bit shifting operators. However, my current implementation seems to ask for a better approach Basically, I store numbers as two long long unsigned...
Started by on , 6 posts by 6 people.  
Of decimals (1/24 is for instance 0.041 ...) and can therefore interfere with the fourth term in your.
Hi. I'm trying to calculate a percentage "factor". That is, given a 20%, convert it into 0.2 (my intention is to later multiply values by that and get the 20% of the values). Anyway, the question is related with this piece of code: public static void ...
Started by on , 5 posts by 5 people.  
That means that your percentage.divide(hundred, BigDecimal.ROUND_FLOOR) will produce zero (it's effectively... .
You probably want to use ROUND_UP as rounding mode The scale of new BigDecimal("20") is zero because you've got no decimal point in there.
Page: 1   2   3   4   5   6   7   8   9   10  

Related Message Boards & Forums

  • Stack Overflow
  • SAP Community Network : ERP HCM (HR)
  • Questions Tagged With mathematics - Inward Quest
  • Parents' K-8 Curriculum Board - The Well-Trained Mind (aka Hive Mind)
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost