79256750

Date: 2024-12-06 03:20:54
Score: 1.5
Natty:
Report link

The method returns a float because the max. number of bytes/character could actually be fractional depending on the method of encoding.

If future encodings had fractional bytes/character instead of say, UTF-8's 1-4 bytes/character, you may have been thankful.

So to answer your question, yes I would assume. As long as you know the encoding scheme and whether or not fractional bytes are being toyed with, you can make the decision yourself.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Liam Wheaton