Fractional parts in different contexts