Abstract:  Inspired by the definition of b-divisors and the one of defect ideals, improved by the author with
A. Chiecchio, we introduce a continuous function on the space of Cartier b-divisors measuring the defect of a Weil divisor to being Cartier.