[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: RE: eliminating the nth digit of a numeric variable
On 2/27/03 11:39, Nick Cox wrote
>> Nick also gave a solution for replacing all 0's:
>> > real(subinstr(string(myvar),"0","",1))
>This replaces the _first_ zero found.
>> If it were known that the last zero were the evil zero,
>> this could be
>> done via:
>> (at least if the number is smaller than Stata's longs)
Oops. Wasn't reading too close.
* For searches and help try: