Frac, Floor and Ceil material expressions will help you. You can take a look at flibook material function and adapt what is in there for your needs.
Frac, Floor and Ceil material expressions will help you. You can take a look at flibook material function and adapt what is in there for your needs.