Mercurial > projects > qtd
comparison examples/widgets/calculator/calculator.d @ 211:7ea67ec3cf29
another fixes in examples
author | SokoL_SD |
---|---|
date | Tue, 14 Jul 2009 12:50:04 +0000 |
parents | 3ea0efe4d31e |
children | 8aaa84d48451 |
comparison
equal
deleted
inserted
replaced
210:3ea0efe4d31e | 211:7ea67ec3cf29 |
---|---|
84 { | 84 { |
85 return std.string.format("%g", x); | 85 return std.string.format("%g", x); |
86 } | 86 } |
87 int ToInt(string s) | 87 int ToInt(string s) |
88 { | 88 { |
89 return to!int(s); | 89 return to!(int)(s); |
90 } | 90 } |
91 float ToFloat(string s) | 91 float ToFloat(string s) |
92 { | 92 { |
93 return to!float(s); | 93 return to!(float)(s); |
94 } | 94 } |
95 int find(string s, dchar c) | 95 int find(string s, dchar c) |
96 { | 96 { |
97 return indexOf(s,c); | 97 return indexOf(s,c); |
98 } | 98 } |