in ,

iDidIt

iDidIt | git-memes, api-memes, cli-memes | ProgrammerHumor.io
git-memes, api-memes, cli-memes | ProgrammerHumor.io

Content

Proving that 0.1 0.2 0.3 with 20 digits of accuracy from openai import OpenAI client OpenAI( api key-"" ) response client.chat.completions .create model-"gpt-4-1106-preview" messages "role": "user", "content": "what is 0.1 0.2? Answer with only numbers and with 20 digits of precision" , temperature1, maxtokens-256, topp1, frequencypenalty-0, presence penalty0, print(response.choices 0 -message.content) 0.30000000000000000000