PageRenderTime 6ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/www.cppreference.com/wiki/tr/c/math/modf

https://github.com/tsgates/cclookup
#! | 58 lines | 52 code | 6 blank | 0 comment | 0 complexity | 8c067c4ea108abc057aa10de80b05f94 MD5 | raw file
 1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="tr"
 4 lang="tr" dir="ltr">
 5<head>
 6  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 7  <title>tr:numeric:c:modf</title>
 8<meta name="generator" content="DokuWiki" />
 9<meta name="robots" content="index,follow" />
10<meta name="date" content="2010-10-28T18:17:27-0700" />
11<meta name="keywords" content="tr,numeric,c,modf" />
12<link rel="search" type="application/opensearchdescription+xml" href="http://www.cppreference.com/wiki/lib/exe/opensearch.php" title="C++ Reference" />
13<link rel="start" href="../../../../index.html" />
14<link rel="contents" href="http://www.cppreference.com/wiki/tr/numeric/c/modf?do=index" title="İndeks" />
15<link rel="alternate" type="application/rss+xml" title="Recent Changes" href="http://www.cppreference.com/wiki/feed.php" />
16<link rel="alternate" type="application/rss+xml" title="Current Namespace" href="http://www.cppreference.com/wiki/feed.php?mode=list&amp;ns=tr:numeric:c" />
17<link rel="alternate" type="text/html" title="Plain HTML" href="http://www.cppreference.com/wiki/_export/xhtml/tr/numeric/c/modf" />
18<link rel="alternate" type="text/plain" title="Wiki Markup" href="http://www.cppreference.com/wiki/_export/raw/tr/numeric/c/modf" />
19<link rel="canonical" href="modf" />
20<link rel="stylesheet" media="screen" type="text/css" href="../../../lib/exe/css.php@t=custom1&amp;tseed=1289693594" />
21<link rel="stylesheet" media="all" type="text/css" href="../../../lib/exe/css.php@s=all&amp;t=custom1&amp;tseed=1289693594" />
22<link rel="stylesheet" media="print" type="text/css" href="../../../lib/exe/css.php@s=print&amp;t=custom1&amp;tseed=1289693594" />
23<script type="text/javascript" ><!--//--><![CDATA[//><!--
24var NS='tr:numeric:c';var JSINFO = {"id":"tr:numeric:c:modf","namespace":"tr:numeric:c"};
25//--><!]]></script>
26<script type="text/javascript" charset="utf-8" src="../../../lib/exe/js.php@tseed=1289693594" ></script>
27</head>
28<body>
29<div class="dokuwiki export">
30
31<h2 class="sectionedit1"><a name="modf" id="modf">modf</a></h2>
32<div class="level2">
33
34<p>
35Sözdizimi:
36</p>
37<pre class="cpp code cpp">    <span class="co2">#include &lt;cmath&gt;</span>
38    <span class="kw4">double</span> <span class="kw3">modf</span><span class="br0">&#40;</span> <span class="kw4">double</span> num, <span class="kw4">double</span> <span class="sy2">*</span>i <span class="br0">&#41;</span><span class="sy4">;</span></pre>
39<p>
40
41<strong>modf()</strong> fonksiyonu num sayısını, tamsayı ve ondalık kısımlarına ayırır. Tamsayıyı i değişkenine yükler ve ondalık kısmı geri döner.
42</p>
43
44<p>
45C++ ayrıca aşağıdaki yüklenmiş biçimleri de sağlamaktadır:
46
47</p>
48<pre class="cpp code cpp">    <span class="co2">#include &lt;cmath&gt;</span>
49    <span class="kw4">float</span> <span class="kw3">modf</span><span class="br0">&#40;</span> <span class="kw4">float</span> num, <span class="kw4">float</span> <span class="sy2">*</span>i <span class="br0">&#41;</span><span class="sy4">;</span> <span class="co1">// C99'daki modff() ile ayni</span>
50    <span class="kw4">long</span> <span class="kw4">double</span> <span class="kw3">modf</span><span class="br0">&#40;</span> <span class="kw4">long</span> <span class="kw4">double</span> num, <span class="kw4">long</span> <span class="kw4">double</span> <span class="sy2">*</span>i <span class="br0">&#41;</span><span class="sy4">;</span> <span class="co1">// C99'daki modfl() ile ayni</span></pre>
51<p>
52İlgili başlıklar: <a href="frexp" class="wikilink1" title="tr:numeric:c:frexp">frexp</a>, <a href="http://www.cppreference.com/wiki/tr/numeric/c/ldexp" class="wikilink2" title="tr:numeric:c:ldexp" rel="nofollow">ldexp</a>
53</p>
54
55</div>
56<!-- EDIT1 SECTION "modf" [3-] --></div>
57</body>
58</html>