How can I turn on the battery percentage view in task bar?

Navigate to Settings > Battery. Next to Battery percentage, press the slider to turn the feature on.