Mercurial > projects > doodle
view doodle/tk/test/test2.d @ 134:89e8b0d92f36
Ported to bob2 !!!
author | David Bryant <bagnose@gmail.com> |
---|---|
date | Thu, 02 Aug 2012 17:20:52 +0930 |
parents | 3f6bb0bb22dc |
children |
line wrap: on
line source
private { import std.stdio; import std.math; } private { double start(in double value, in double spacing) { real r = floor(value / spacing); return r * spacing; } } void test(double a, double b) { double c = start(a, b); writefln("%f %f %f", a, b, c); } void main(string[] args) { test(-100.0, 10.1); }