Rolling division

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Given a number, divide it by two until its down to 1, printing the result each time.
Round > x.3 and < x.7 to x.5
and round > x.7 to x+1
and round < x.3 to integer(x)

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

1332

Sample output:

1332.0
666.0
333.0
166.5
83.0
41.5
21.0
10.5
5.0
2.5
1.0

Sample input:_

1024

Sample output:

1024.0
512.0
256.0
128.0
64.0
32.0
16.0
8.0
4.0
2.0
1.0

Sample input:_

11.5

Sample output:

11.5
6.0
3.0
1.5
1.0

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid410.05482012/01/18 18:17:260B / 22B / 16B
2clock440.13562012/01/17 01:01:330B / 27B / 14B

Perl _

RankUserSizeTimeDateStatistics
1teebee440.04442012/01/16 10:21:330B / 18B / 25B
2tails440.04602012/01/16 10:26:330B / 18B / 25B
3smkt1070.04772012/01/16 11:05:492B / ?B / ?B
4smkt1020.04912012/01/19 08:56:590B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1recursive460.12852012/01/16 22:53:540B / 27B / 17B
2teebee460.07052012/01/18 06:08:280B / 28B / 15B
3leonid460.07212012/01/18 18:36:480B / 28B / 15B
4hallvabo480.07792012/01/18 18:15:160B / 28B / 17B
5primo510.55712012/01/16 05:40:270B / 30B / 20B
6Hendrik510.08652012/01/17 22:36:580B / 28B / 20B

PHP _

RankUserSizeTimeDateStatistics
1primo590.14422012/01/16 05:31:515B / 28B / 26B
2teebee590.09582012/01/19 04:36:185B / 28B / 26B
3clock620.16842012/01/16 22:10:205B / 31B / 26B

Scheme _

RankUserSizeTimeDateStatistics
1kaki490.07142012/01/17 15:21:500B / 22B / 24B
2dico_leque490.13962012/01/18 06:23:500B / 22B / 24B
3kaki470.05712013/03/25 06:00:300B / 18B / 28B

Common LISP _

RankUserSizeTimeDateStatistics
1youz520.08132012/01/17 15:56:150B / 24B / 24B
2kaki520.08072012/01/17 16:21:270B / 24B / 24B

Arc _

RankUserSizeTimeDateStatistics
1pooq533.20872012/01/24 13:07:430B / 25B / 23B

Io _

RankUserSizeTimeDateStatistics
1pooq960.35332012/01/18 12:41:000B / 68B / 23B

JavaScript _

RankUserSizeTimeDateStatistics
1nn570.07312012/01/17 00:04:350B / 35B / 22B
2clock570.20132012/01/17 00:40:090B / 35B / 22B

Lua _

RankUserSizeTimeDateStatistics
1pooq770.05692012/01/18 13:31:320B / 43B / 32B

Xtal _

RankUserSizeTimeDateStatistics
1teebee650.09442012/01/18 05:04:050B / 34B / 30B
2pooq710.20722012/01/18 02:31:590B / 35B / 36B

BASIC _

RankUserSizeTimeDateStatistics
1pooq620.30692012/01/17 14:10:210B / 36B / 23B
2hakusui650.04952012/01/19 01:03:550B / 37B / 27B

J _

RankUserSizeTimeDateStatistics
1I., S.(R6)390.21422012/01/16 21:10:590B / 15B / 23B
2pooq510.10132012/01/17 10:59:180B / 11B / 40B
3medialuna1450.08592014/08/13 16:38:430B / ?B / ?B

C _

RankUserSizeTimeDateStatistics
1nai740.05952012/01/19 01:35:120B / 39B / 35B
2inaniwa750.04162012/01/17 22:52:100B / 40B / 35B
3nn760.05062012/01/17 23:13:500B / 38B / 38B
4not770.04152012/01/16 22:32:040B / 37B / 40B
5bk1e1050.04942012/01/16 12:38:090B / 53B / 50B
6smkt1530.04422012/01/16 15:18:450B / ?B / ?B
7inaniwa(not)710.07182012/01/19 08:55:000B / 35B / 36B
8smkt + bk1e1020.05412012/01/19 09:09:100B / ?B / ?B

Java _

RankUserSizeTimeDateStatistics
1teebee1130.31382012/01/17 06:00:420B / 71B / 40B
2hakusui1130.51092012/01/18 00:42:020B / 76B / 33B

Maxima _

RankUserSizeTimeDateStatistics
1pooq571.74662012/01/16 18:15:000B / 32B / 23B

Asymptote _

RankUserSizeTimeDateStatistics
1teebee650.49942012/01/18 06:31:160B / 36B / 27B

AWK _

RankUserSizeTimeDateStatistics
1teebee480.04662012/01/16 12:30:240B / 25B / 23B

bc _

RankUserSizeTimeDateStatistics
1teebee390.04392012/02/26 10:57:570B / 18B / 19B

dc _

RankUserSizeTimeDateStatistics
1tails270.04532012/01/16 11:33:460B / 16B / 11B

R _

RankUserSizeTimeDateStatistics
1pooq630.52652012/01/16 15:05:180B / 38B / 23B

GolfScript _

RankUserSizeTimeDateStatistics
1clock520.07722012/01/19 02:05:270B / 15B / 37B

Vim _

RankUserSizeTimeDateStatistics
1clock490.12142012/01/19 03:34:054B / 26B / 17B

Groovy _

RankUserSizeTimeDateStatistics
1hakusui584.64842012/01/17 00:05:450B / 40B / 16B
2nn663.95182012/01/18 01:20:580B / 44B / 21B

Logo _

RankUserSizeTimeDateStatistics
1teebee540.05482012/01/18 06:20:180B / 33B / 10B

Language Ranking_

RankLangUserSizeScore
1dctails2710000
2JI., S.(R6)396923
3bcteebee396923
4Rubyleonid416585
5Perlteebee446136
6Pythonrecursive465869
7Schemekaki475744
8AWKteebee485625
9Vimclock495510
10Common LISPyouz525192
11GolfScriptclock525192
12Arcpooq535094
13Logoteebee545000
14Maximapooq574736
15JavaScriptnn574736
16Groovyhakusui584655
17PHPprimo594576
18BASICpooq624354
19Rpooq634285
20Xtalteebee654153
21Asymptoteteebee654153
22Cinaniwa(not)713802
23Luapooq773506
24Iopooq962812
25Javateebee1132389

return top