Programming Coding Kata #6 Exercise

preview_player
Показать описание
convert a decimal string to a decimal number
Рекомендации по теме
Комментарии
Автор

@OmarHafez87 very good, but just import Decimal not everything :)

programmersbook
Автор

@programmersbook Oh, I see.
Thanks. :-)

OmarHafez
Автор

In Python:

from decimal import *

s = '2.341'
d = Decimal(s)

print d

OmarHafez
Автор

Java:

double number = Double.parseDouble(String name here);

mpua
Автор

Hi, I would like to get in touch with you, could you please provide me with your contacts ... I also want to ask if you can give personal coaching one on one by any mean of communication? I am interested in learning django and I am a novice programmer (learning Python) and I can't find any good tutorials online for django for beginners like me assuming little knowledge ... your full django tutorials are great but I am using django 1.4 and was looking for new tutorials.

sulhum