<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Following from other languages, C's ceil returns floats, but Ruby's ceil returns an Integer, PHP returns a float.</p>
<p><br>
</p>
<p>I'm seeing here there isn't a particularly accepted standard.<br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> erlang-questions-bounces@erlang.org <erlang-questions-bounces@erlang.org> on behalf of Dan Gudmundsson <dangud@gmail.com><br>
<b>Sent:</b> Thursday, 2 June 2016 7:56:32 PM<br>
<b>To:</b> Erlang Questions<br>
<b>Subject:</b> [erlang-questions] math ceil floor</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Hi </div>
I made pull request <a href="https://github.com/erlang/otp/pull/1084">https://github.com/erlang/otp/pull/1084</a> <span style="line-height:1.5">which implements ceil and floor in the math module.</span>
<div><br>
</div>
<div>The question is, should they return integer or floats?</div>
<div><br>
</div>
<div>The implementation in the PR currently returns integers and also implements ceilf and floorf which returns floats.</div>
<div><br>
</div>
<div>Opinions?</div>
<div><br>
</div>
<div>/Dan<br>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</body>
</html>