In two cases or on two occasions; two times: I rewrote the essay twice.
In doubled degree or amount: twice as many.
twice
see cheap at twice the price; lightning never strikes twice; once bitten, twice shy; think twice.