dfs, be careful about the edge case like 0.00, and need to remove the last '.'