I'm trying to round up time (hh:mm:ss.00) in OpenOffice Calc, but to no success.
For example, I am trying to round up the following time to HH:MM:SS
01:41:32.69 -> 01:41:33
01:45:59.20 -> 01:46:00
01:31:48.62 -> 01:31:49
01:01:56.12 -> 01:01:57
I've tried using:
mround(A1,1/24/60/60)
but it does not work.
Any ideas?
I found using the ceiling function works.
Thanks for reading everyone!
Related
I have no idea what to put in the formula box, and the help (https://support.microsoft.com/en-us/office/create-a-measure-in-power-pivot-d3cc1495-b4e5-48e7-ba98-163022a71198?ns=excel&version=90&syslcid=1033&uilcid=1033&appver=zxl900&helpid=149601&ui=en-us&rs=en-us&ad=us) says simple enter a formula.
Is there any documentation?
Neither
=SUM(dsv_FactIncome[ClientValue], dsv_FactIncome[PartnerValue])
nor
=SUMX(dsv_FactIncome[ClientValue], dsv_FactIncome[PartnerValue])
are acceptable to it, either.
This is DAX and your syntax is incorrect. Try
=SUM(dsv_FactIncome[ClientValue]) + SUM(dsv_FactIncome[PartnerValue])
I have to convert a given date to quarter.
This usually means (using floating point), I could use this algorithm in Nifi's expression language:
${start_dt
:toDate("yyyy-MM-dd'T'HH:mm:ssZ")
:format('MM','GMT')
:toNumber()
:divide(3)
:plus(0.9)
:toDecimal()}
The steps would be like this:
2019-11-10T12:00:00+0000 -> 11 -> 11 -> 3.66666 -> 4.56666 -> 4
2019-12-10T12:00:00+0000 -> 12 -> 12 -> 4 -> 4.9 -> 4
But instead I get 3.9 instead, only for Month 12 its working, so the toNumber() doesn't work. As perdocumentation, I have to convert to Number before a division, so that I get floating points, but apparently that doesn't work.
I don't want to use a script just for this little calcualtion.
Nifi version is 1.9.2
Using divide(3.0) instead of divide(3) solved the problem.
Documentation says, if one of the parameters is number, that one is used. Since I'm not a native speaker, I also mixed up Number and Decimal. Decimals are the floats, Numbers are the integers.
Here the working algorithm:
${start_dt
:toDate("yyyy-MM-dd'T'HH:mm:ssZ")
:format('MM','GMT')
:divide(3.0)
:plus(0.9)
:toNumber()}
I am using mathematica to query wolfram alpha for a query. for that purpose I use:
WolframAlpha["prime minister of france", "PodPlaintext"]
I took the options from here: http://reference.wolfram.com/language/ref/WolframAlpha.html
My problem is that I need info that is hidden at first and is located under the more option on the page. I was unable to find a way to query the full data (after more was clicked) from the mathematica.
Any ideas how to achieve it?
For anyone who encounters this problem in the future, I will post the answer in case someone else will have this problem. You have to use the more option combined with asynchronous and change the timeout:
WolframAlpha["prime minister of france", Asynchronous -> True,
PodStates -> {"More"}, TimeConstraint -> 20000]
I don't see anything on the oracle docs saying how to change the formatting of the output of a numtodsinterval function so I was hoping you could help
EXTRACT(MINUTE FROM NUMTODSINTERVAL(TOTAL_HOURS, 'HOUR'))
I would like this to come out in a two digit format :'MM', now it works in converting 1.25 into 1:15 but if the time is 8.1333 it displays 8:8
thanks!
Hey sorry yes you're right, I had not given enough information, I did want to display it in typical time fashion HH:MM, and also you are right it does return a number, I did not have a to_char , adding it made this a simple problem to solve so thank you!
I have a an old line of code from Mathematica version 6 or 7 that I need to port to Mathematica 8.
I don't have a working version of 6 or 7 so I can't run the original code to do a side by side test to see if I get the same results. I thought someone here might know just from looking at the code.
Earlier version:
Regress[data, x, x, RegressionReport -> {FitResiduals}][[1]][[2]]
I've tried the following in version 8:
LinearModelFit[data, x, x]["FitResiduals"]
I have no way to tell if the new code will give me either the output and/or the format of the output of the earlier version.
Any help appreciated.
Thanks to all for making this such a great resource!
J.
Yes, the output of this code from Version 6:
FitResiduals /. Regress[data, x, x, RegressionReport -> {FitResiduals}]
... is indeed equivalent to this code from Version 8:
LinearModelFit[data, x, x]["FitResiduals"]
... for the sets of random reals I tried. The difference between the two results is effectively zero:
In[26]:= fromV6 == fromV8
Out[26]= True
In[27]:= fromV6 - fromV8
Out[27]= {0., 1.11022*10^-16, 0., 0., 1.11022*10^-16}
Regress returns a list of rules, and the [[1]][[2]] business extracts the RHS of the first rule. The method I used above (FitResiduals /. Regress[...]) is a better way to do that.
HTH!
According to the upgrade tutorial for the old statistics module, Regress was last seen in version 6. Based on the fact that "FitResiduals" is not in the list of renamed properties at the bottom of the page, I would say that the output of your new version should be pretty close to the old version.
If you want somebody to test for you, I would suggest putting up a small working dataset and post the output from the new code -- then somebody will probably post the output from v5 or v6. The documentation for the old module is here.
HTH