Guillaume Frechette
> My problem ... the use of float doesn't seem to be the
> solution. Here's an example
> . gen foo = 1/3
> . gen bar = 1/3
> . gen baz = 1-foo-bar
> . tab baz
> baz | Freq. Percent Cum.
> ------------+-----------------------------------
> .3333333 | 850 100.00 100.00
> ------------+-----------------------------------
> Total | 850 100.00
> . tab baz if baz == float(1/3)
> no observations
> Can someone tell me how to get Stata to know to recognize baz as
equal to
> 1/3?
Nick proposed one solution, here's another one which I just found: