Operatoren und Datentypen [ID:144] (5/14)
in series: Einführung in die Programmierung mit Python
video tutorial by Lucas Holland and mro, added 03/07
Name:
[079] Lucas Holland
Member:
64 months
Authored:
58 videos
Description:
Hey, I'm a geek just like you ;-) No, seriously I do have a real life... I enjoy programming, screencasting and spending time with my friends.
I maintain a blog together with Marius at: http://www ...
Our authors tell us that feedback from you is a big motivator. Please take a few moments to let them know what you think of their work.
In dieser Episode geht es um Operatoren und Datentypen, die eine Grundlage für die weiteren Episoden bilden.
Uploaded on 7th February 2007, running time 10 minutes.
Got any questions?
Get answers in the ShowMeDo Learners Google Group.
Video statistics:
- Video's rank shown in the most popular listing
- Video plays: 1886 (since July 30th)
- Plays in last week: 2
- Published: Sometime before 1st March 2007 (in other words - we don't remember!)
Thank-yous, questions and comments
If this video tutorial was helpful please take some time to say thank-you to the authors for their hard work. Feel free to ask questions. Let the author know why their video tutorial was useful - what are you learning about? Did the video tutorial save you time? Would you like to see more?
You may also want to see our ShowMeDo Google Group to speak to our active users and authors.
All comments excluding tick-boxed quick-comments
Good video, but: some of the operators used were barely visible, such as the modulooperator. It would be better, if you could actually say which sign your are using. same goes for brackets, just say which type do you use.
Sehr ausführlich erläutert
Auf das Problem bin ich bisher noch nicht gestoßen, aber ein bisschen suchen in der Python-Dokumentation hat zu diesen beiden Seiten geführt:
http://www.python.org/doc/faq/general/#why-are-floating-point-calculations-so-inaccurate
http://docs.python.org/tutorial/floatingpoint
Grundsätzlich wird dort erklärt, dass das Problem in der Umrechnung der Binärdaten liegt und aus mathematisch-technischen Gründen die beste Möglichkeit "2.4" als float anzuzeigen die mit den vielen Nachkommastellen ist. Es scheint keine wirklich elegante Lösung zu geben, aber der zweite Link ist doch recht interessant.
Hallo. Danke schön für Tutorial. Ich habe eine Frage. Warum gibt es für float("2.4") ein 2.39999.. und nicht 2.40000 so wie wäre erwartet?.
3+5 =5 ???
