I want to use bc to do some multiplication and return me a value with number of decimal places defined by myself.
For example:
returns me:
But what I really want is to have is a result with 10 digits after the point which should look like:
But "scale" just doesn't work here. And, if I want to have result without decimal place, for 11.55, it should return me the result like:
Could I achieve these without the help of other command. I know I could pipe the result to awk or another bc (by division for which scale works), but I just interested in if a single bc with some special option can do it simply?
Why does that work for multiplication but not division?
Because divison works exclusively off the internal scale which is initialized to zero by default...but for multiplication both the internal scale and the scale of the factors comes into play...so the scale of x*y is the larger of either the internal scale or the scale of the factors...x or y.
I am using mayavi to plot an iso surface from a 3D array s using the following piece of code:
src = mlab.pipeline.scalar_field(s)
fig=mlab.pipeline.iso_surface(src, color=(1.0,0.0,0.0), contours=, opacity=0.3)
mlab.pipeline.iso_surface(src, color=(0.0,1.0,1.0),contours=, opacity=0.3) Then... (0 Replies)
Hi buddy,
I would like to know are there any company still running large scale grid platform like Parabon? Parabon is the only company running such kind of platform and purchasing CPU power. Is that right?
Thanks,
Colapig (0 Replies)
Hi,
I tried to install a software (written in C) and run it on a sun machine.
It is displaying the error:
unable to allocate enough cells for gray scale.
I closed all other apllications and set background to black to minimize usage of cells. But it is diaplaying the same error.
Plz help... (1 Reply)