325 Reputation

3 Badges

1 years, 208 days

MaplePrimes Activity

These are replies submitted by Anthrazit


I'll have to go back to your rnd2 code once again.

Would it be possible to extend that to be able to use it for variables with any kind of units as well?

Like roundunit(15.131681381 m,3) -> 15.132m



Thanks, that was a very quick reply. And you are right, I have just found out about the "bug" with the mm's as well.

I tried to change the "Convert output Units" format and the first result was that there was no change.

But then I saw that this setting apparently can be set either to the entire worksheet or an execution group. Guess I have to play around a bit more with that. 

Thanks a lot for the



I've got a bug in my worksheet, would be nice if you could have a look at it.

I have finally managed to get it working thanks to the help from support and users in the forum.

The solution is as mentioned before by packing the code as a workbook package, and upload it to Maple Cloud as a package.

There was one more obstacle when trying to use the package - one cannot install packages from Maple Cloud via Google Chrome or a different webbrowser. Instead it is necessary to use the link from within Maple - Tools - Maple Cloud.

After the installation of the package, it is no longer necessary to refer to a library in the startup code anymore.

I have received a reply from Maplesoft Support which I would like to post here uncommented.


In Mathcad percent are handled as an algebraic operator, but that would be a problem because Maple already has a function associated with that. Mathcad does not have anything for "per thousand" (promille).

In my opinion this should be handled as a predefined unit in Maple.

On the wishlist to the developers?



Ok, thanks for the reply anyway. I'll wait and see what Maple support comes up with.

But if we put the workbook solution aside first, is there a solution where I can upload the .mla file to Maple cloud as a package, and use that from there?

Here's one example that uses a special package.


I have attached the example as a zip file, probably you can make something out of that. In addition I have also opened a formal support case on that issue yesterday, so I guess someone from Maplesoft will have a look at that in the near future.

Did a quick search on Maple Cloud also, and tried to find a public example including a workbook. Didn't find anything - though I have to admit that I skipped the ones with asian (chinese ?) characters in titles...


Thanks, here's the upload once again in a zip file.

Here's the Maple Workbook in question.


I think the answer might be to save the file as a Maple Workbook.

At least I am getting the same errors as in the Maple Cloud when working with the workbook format.

The question is - how do I use an attached Maple repository file (.mla) in the workbook?

The repository path is "this:///NODETre.mla" - so how I attach that?

libname := "this://", libname

gives a Maple Error regarding Kernel connection


Try to read once again what I have written.

The differences in rounding of halv integers - and that is really the only thing where implementations are different - are more or less known.

When I wrote that one can't always trust the last digit, that doesn't mean I don't trust the implementation of the rounding in the different software packages. It means that I don't actually know which kind of rounding (up or down) the different software packages use.

I could even extend that further to human languages. In German we have two words for that - "aufrunden" (round up) and "abrunden" (round down). In Norwegian we usually just use "avrunde" which doesn't give any indications about which way it is done.

So in my personal point of view we still stand where we started.

  • Maple does at the moment not have any function to round numbers to a specific number of digits.
  • It should have one. There are situations where simply defining how many digits are shown in a result is not enough (see using numbers for indexing of tables, or output to Math Containers, etc.)


Apparently it is possible if the code is run during startup or through "Execute entire worksheet".


No, not that I am aware of.


Thanks a lot, that was very helpful.

5 6 7 8 9 10 Page 7 of 10