There is no floating point representation for 'gross', 'egregious', or 'blatant'. At least not one that will be suitable in all cases.
Even ignoring the subtleties of the real world that the ̶l̶a̶w̶ edit legal system must cope with, nuts-and-bolts legal concepts like mens rea can't be mapped to algebraic expressions.
[0] https://arstechnica.com/tech-policy/2020/06/indiana-supreme-...