All the data that come from the source are integers:
345819404
1093
28495
The only "tool" I have at my hand is Excel-style formatting options to turn it into:
3,458,194.04
10.93
284.95
Basically I can't convert those using / 100. So far I have two different styles that give me both components but I can't merge them together.
#,##0 gives me thousand separator
#"."00 places the dot as a "fake" decimal point
How can I get this work together?
Related
I have a graph which has two lines.
The graph is generated from "random" data. I.e. not based on a formula or pattern. But there is always a point where the two lines intersect.
I'm trying to provide exact point (on x and y axis) where the lines cross.
Ive tried using slope/intercept formulas
And what if analysis.
However these methods only seem to work if the data is based on a formula or pattern.
I can sort the data and find the point where they are at their closest then take an average using data around that point to get an approximate match.
However is there any way to do this more accurately, or does the nature of my data(random data points) make this not possible using formulas/equations
I currently have a very large dataset in SPSS where some variables have up to 8 decimal places. I know how to change the options so that SPSS only displays variables to 2 decimal places in the data view and output. However, SPSS still applies the 8 decimal precision in all calculations. Is there a way to change the precision to 2 decimal places without having to manually change every case?
You'll have to round each of the variables. You can loop through them like this:
do repeat vr=var1 var2 var3 var4 var5.
compute vr=rnd(vr, 0.01).
end repeat.
If the variables are consecutive in the file you can use to like this:
do repeat vr=var1 to var5.
....
SPSS Statistics treats all numeric variables as double-precision floating point numbers, regardless of the display formats. Any computations (other than those in one older procedure, ALSCAL) are done in double precision, and you don't have any way to avoid that.
The solution that you've applied will not actually make any calculations use only two decimals of precision. You'll start from that point with numbers rounded to approximately what they would be to two decimals, but most of them probably aren't exactly expressable as double precision floating point numbers, so what you're actually using isn't what you're seeing.
i need to put the decimal numbers starting with 0,... to the Excel graph. If I create the graph and add the values my decimal values is still 0,00 at the graph. If I change them (ex. 400) the graph works good!
adding the screenshots.
decimals numbers starting with 0,..
graph with normal numbers works.
I found the issue! I posted (.) behind the zero and It has to be (,).
I would like to use weeknumbers in number formatting in Excel, in particular in XY-graphs.
The built-in function WEEKNUM() can be used to extract the weeknumber from a date. With these weeknumbers I can proceed in two different manners:
use the weeknumbers as text labels on my graph axis. This does not give the required result as labels are distributed evenly on the axis. A sequence like "13" "14" "33" would put the label "14" just in the middle.
use the weeknumbers as numbers on my graphs axis. This would resolve the above problem, but gives a gap at years end. E.g. 1652 (week 52 in 2016) and 1701 are 49 units away from each other.
To illustrate, please see these two graphs. The graphs indicate a tracking of a project plan, i.e. planned versus actuals. The first chart is a correct graph somewhere in the midst of a year; the second chart is more or less the same graph crossing year's end.
Correct chart, in the midst of a year
Chart showing problem at year's end
Now I'm stuck. My preferred route would be to add a number format to the generic number formatting methods in Excel. E.g. similar to be able to use yyyy for years and ddd for days, I'd like to use ww for weeknumbers.
How can I achieve this?
Not certain I'm understanding the question fully, but if you're wanting to ensure the end result is treated as a number you could use =Text(WEEKNUM(A1), "#") which would convert it to a numeric value.
For the chart, sounds like you could use the axis options (right click on the axis labels >> Format Axis). There are multiple options that would allow you to change how the labels are displayed.
How can Newton's basin of attraction be created from a data file?
I got 10000 points in the range -2, 2 and their zeros for complex function z^3-1. I'd like to plot them with three different colors to create basin of convergence.
Data I've obtained from my program is available here. The format is like this:
(-0.422468,1.36075) (-0.5,0.866025)
(1.19376,1.1324) (1,-6.76273e-19)
...
First two numbers in "( )" are complex start points, the second two are the zero that it converges to. Zeros are exact to the level of e-10, I can easily change it to e-16.
From what I understand, I would try something like:
plot 'yourdata.dat' using 1:2:(arg($3+$4*{0,1})) '(%lf,%lf) (%lf,%lf)' palette
The string '(%lf,%lf) (%lf,%lf)' is the format of your data, so that gnuplot can read it as a file of four columns. Then, you can select the columns to be plotted with using 1:2:(arg(...)); in this case, the x-axis is the real part of the starting points (column 1), and the y-axis is its imaginary part (column 2). The third part of using, arg($3+$4*{0,1}), and the option palette are used to chose the color depending on the phase of the complex zero (columns $3 and $4).