Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37752 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95592 invoked from network); 20 May 2008 18:22:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 May 2008 18:22:27 -0000 Authentication-Results: pb1.pair.com header.from=kalle@zesix.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=kalle@zesix.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zesix.com from 67.19.4.138 cause and error) X-PHP-List-Original-Sender: kalle@zesix.com X-Host-Fingerprint: 67.19.4.138 8a.4.1343.static.theplanet.com Received: from [67.19.4.138] ([67.19.4.138:43968] helo=web.clantemplates.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/00-28995-2E613384 for ; Tue, 20 May 2008 14:22:26 -0400 Received: from [81.216.205.138] (helo=KALLESAWESOMEPC) by web.clantemplates.com with esmtpa (Exim 4.63) (envelope-from ) id 1JyWTc-0001Q5-OC for internals@lists.php.net; Tue, 20 May 2008 11:21:58 -0700 Message-ID: To: "PHP Developers Mailing List" Date: Tue, 20 May 2008 20:22:16 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18000 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - web.clantemplates.com X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - zesix.com Subject: Add deg2grad() and grad2deg() in PHP5.3 From: kalle@zesix.com ("Kalle Sommer Nielsen") Greetings internals I've made two functions that allows convertion between degress and gradians, below is a pastebin of the functions as that would look in math.c: http://www.phpfi.com/318450 If no objections against it I will commit them in PHP_5_3 and HEAD and I will prepare some test cases for those aswell. Cheers Kalle