How to set css zoom level to local storage

How to set css zoom level to local storage

I am using a jquery function to zoom in/out. I need to save there preference to local storage. All of the examples I have found save strings and objects, wouldn't this be a interger?