← Back to context Comment by nathan_gold 2 years ago I'm curious what answer GPT will return. 5 comments nathan_gold Reply elzbardico 2 years ago Probably this one as this is the most common on the corpus it was used to train it. chriscosma 2 years ago GPT-3.5 returns: public static String convertBytes(long bytes) { String[] suffixes = {"B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"}; if (bytes < 1024) return bytes + " " + suffixes[0]; int exp = (int) (Math.log(bytes) / Math.log(1024)); return String.format("%.2f %s", bytes / Math.pow(1024, exp), suffixes[exp]); } a1o 2 years ago So the code from the dude in the blog post here Sprocklem 2 years ago Not quite. ChatGPT incorrectly mixes up SI and non-SI units. Denote6737 2 years ago Given how unreliable it is probably, 418 - I'm a teapot.
elzbardico 2 years ago Probably this one as this is the most common on the corpus it was used to train it.
chriscosma 2 years ago GPT-3.5 returns: public static String convertBytes(long bytes) { String[] suffixes = {"B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"}; if (bytes < 1024) return bytes + " " + suffixes[0]; int exp = (int) (Math.log(bytes) / Math.log(1024)); return String.format("%.2f %s", bytes / Math.pow(1024, exp), suffixes[exp]); } a1o 2 years ago So the code from the dude in the blog post here Sprocklem 2 years ago Not quite. ChatGPT incorrectly mixes up SI and non-SI units.
a1o 2 years ago So the code from the dude in the blog post here Sprocklem 2 years ago Not quite. ChatGPT incorrectly mixes up SI and non-SI units.
Probably this one as this is the most common on the corpus it was used to train it.
GPT-3.5 returns:
So the code from the dude in the blog post here
Not quite. ChatGPT incorrectly mixes up SI and non-SI units.
Given how unreliable it is probably, 418 - I'm a teapot.