Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/bash
- #
- # add100 1.0.1, 2023-03-28
- #
- # "Excel kann, wie alle Computerprogramme nicht richtig rechen. Rechne
- # einfach einhundert Zeilen: Die vorherige Zeile + 0.1 und schaue was
- # raus kommt. Da entsteht ein Fehler in der sechsten oder siebten
- # Kommastelle."
- #
- # Bernd Storck, https://www.facebook.com/BStLinux/
- #
- dc_result=""
- dc_total=0
- for i in $(seq 1 100);
- do
- # dc_total=$(dc -e "10 k $dc_total 0.1000000001 + p" | sed -E 's:^\.(.*)$:0\.\1:')
- dc_total=$(dc -e "30 k $dc_total 0.10000000000000000000 + p" | sed -E 's:^\.(.*)$:0\.\1:')
- if (( i % 4 != 0 )) ; then
- dc_result="${dc_result} - $dc_total"
- else
- dc_result="${dc_result} - $dc_total\n"
- fi
- done
- # echo -e "\nAddition mit dc (arbitrary precision calculator) unter Bodhi Linux 6.1.0:\n"
- echo -e "\n Addition with dc (arbitrary precision calculator) on Bodhi Linux 6.1.0:
- This demonstrates the accuracy of the dc calculator. In this example, dc repeatedly adds 0.1
- with an accuracy of 30 decimal places and outputs the result with 20 decimal places.
- "
- echo -e "$dc_result" | sed -E 's:^ - (.*)$: \1:'
- exit 0
Advertisement
Comments
-
- --Get Gamepasses
- local gmppath = require(game:GetService("ReplicatedStorage").Framework.Modules.Client["5 | Gamepasses"])
- gmppath.Owns = function() return true end
- --Fuze Pets (You Need 2.5k Gems)
- while wait() do
- for i,v in pairs(game:GetService("Workspace")["__THINGS"].Pets:GetChildren()) do
- local A_1 = {
- [1] = {
- [1] = tostring(v.Name),
- [2] = tostring(v.Name),
- [3] = tostring(v.Name),
- [4] = tostring(v.Name),
- [5] = tostring(v.Name),
- [6] = tostring(v.Name),
- [7] = tostring(v.Name),
- [8] = tostring(v.Name),
- [9] = tostring(v.Name),
- [10] = tostring(v.Name),
- [11] = tostring(v.Name),
- [12] = tostring(v.Name)
- }
- }
- local Event = game:GetService("Workspace")["THINGS"]["REMOTES"]["fuse pets"]
- Event:InvokeServer(A_1)
- end
- end
Add Comment
Please, Sign In to add comment