Re: import("dir/file") does not work
On Wednesday, 18 May 2016 at 12:16:47 UTC, Andrew Chamberlain wrote: On Wednesday, 18 May 2016 at 11:58:46 UTC, Vadim Lopatin wrote: On Wednesday, 18 May 2016 at 06:47:08 UTC, Atila Neves wrote: On Wednesday, 18 May 2016 at 05:11:51 UTC, Vadim Lopatin wrote: [...] That was a bug that was recently fixed. Atila Thank you! It looks like it's not yet included into recent DMD beta available for download. in nightly perhaps ? https://dlang.org/download.html#dmd-nightly the latest beta is always for a "point" release so it only includes regressions fixed from the previous "discrete" (.0) release, not the bug fixed since the "discrete" release to the "point" release.
Re: import("dir/file") does not work
On Wednesday, 18 May 2016 at 11:58:46 UTC, Vadim Lopatin wrote: On Wednesday, 18 May 2016 at 06:47:08 UTC, Atila Neves wrote: On Wednesday, 18 May 2016 at 05:11:51 UTC, Vadim Lopatin wrote: [...] That was a bug that was recently fixed. Atila Thank you! It looks like it's not yet included into recent DMD beta available for download. in nightly perhaps ? https://dlang.org/download.html#dmd-nightly
Re: Formatted Output: Exact number of Decimal Places
On Monday, 16 May 2016 at 20:24:51 UTC, Q. Schroll wrote: Lets say I want to print a table with floats. How can it be formatted like that: | 2.4 | | 12.2 | | 8.131 | | 17.44 | Also acceptable is | 2.400 | | 12.200 | | 8.131 | | 17.440 | but not | 02.4 | | 12.2 | | 08.131 | | 17.44 | or any other solutions with leading zeros. I have this one: import std.stdio; import std.string, std.algorithm, std.format; void main(string[] args) { [2.4, 12.2, 8.131, 17.44].each!(a => format("%.3f", a) .rightJustify(6).center(8).center(10,'|').writeln); } But only works if fractional and integral part are both up to 3 digits.