This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
I am working on an Oracle project where we are using NUMERIC (27,12) fields. I first transform cash values in the db fields into normalized percent form, do some arithmetic on these percents and then finally converts them back into cash amount.
It is a money management application and sometimes the results are off by some pennies that is some pennies short and I believe that is due to this conversion.
I need to know how can I avoid this error introduced somehow in oracle SQL?
Hard to answer without any code. Do you use BigDecimal? If conversion is bugy (I don't think so) try store/retrive value as string, convert string to bigdecimal or whatever, operate on it, and see if you get the same precision.
Related
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
Can anyone tell me what is the difference between parse and foreach in CSV?
Check Ruby Document here.
Generally speaking, #parse is used to parse a string while #foreach is for a file.
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
Even though I'm using different ajaxUrl's. Like ajax01Url, ajax02Url, etc. Each one of them with its own typeNum. I keep getting the same array content in function(data).
Any suggestions how to clean this?
It was my own fault, I had a typo on the action name :)
I was calling the two different uri.action with the same name. Even though they have different pageType.
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
Is there any method available in ruby 1.8.6 for calculating n values n power?
Like 2 has 5 power then answer is 32 and 5 has 3 power then answer is 125?
2**5 will give you the result 32.
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
I noticed in the Cell > Cell properties menu an item I assume was recently added, but I really wouldn't know for sure (8.0.4/Win here). It's called Initialization Command:
Nothing about it to be found in my documentation center. Neither does it seem to be in the online reference:
Any idea what this is supposed to do? As far as I can see its effect is the same as the Initialization Cell menu item.
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 11 years ago.
Mathematica 8.0.1 on Mac OS X 10.7.2 does this: Quit the kernel and execute
MathieuS[MathieuCharacteristicA[ 1, -(1/4)], -0.25`, 15.707963267948966`]
MathieuS[MathieuCharacteristicA[ 1, -(1/4)], -0.25`, 15.707963267948966`]
(*
5.10119 10^-15
MathieuS[MathieuCharacteristicA[1, -(1/4)], -0.25, 15.708]
*)
That is, the first time it numerically evaluates the expression, while the second time it returns the unevaluated form.
Why? Or have I just spent too long staring at my screen and am doing something stupid?