Getting the hundred part of a sensor

How can I find the lowest hundred point?

lets say I get the following numbers:

101
120
133
140

I want to get only 100

if 201, 222, 233, 244

I want to get only 200

etc…

Never mind got it

floor(id(sensor_name).state / 100.0) * 100)

divide by 100, take the integer. multiply by 100. In a template.