Hello,
I have a problem with the max() function. I have a dataset with several variables and one of these variables' maximum value is 83.2. To proceed with some calculations I need a column in which I report this value and I have to do this operation with several other times. For this reason I decided to implement the function max in the following way:
egen newvar = max(old_variable)
I'm sure that the result should be 83.2 but my new variable is an approximation of this value (specifically, 83.199997). How is it possible? Is it possible to have the exact value?
Thanks a lot,
Federico
Related Posts with Max function doesn't return the exact result
Create Twoway Line Graph Forcing Gaps for Missing PeriodsHi all, My data: Code: input float(Datum_n total_unem_bymonth sum_newpositions_bymonth) 723 14824…
Reshape dataHi I have the following data having following variables lat level lon time air dup time2. The level…
How I find the wrong data?Dear Statalist, I have the note: multiple positive outcomes within groups encountered, followed by c…
Treatment Variation PlotHello Statalist! I was wondering if it would be possible for Stata to plot this kind of variation f…
Create a matrix or data set from current variables in stataHi everyone! I have a dataset with three variables: province_code (11 province codes), newnsector (…
Subscribe to:
Post Comments (Atom)
0 Response to Max function doesn't return the exact result
Post a Comment