home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| C source text
| default
| |
98%
| file
| LaTeX document, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| gt2
| C/C++ Source Code
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| text/x-csrc
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 2f 2a 20 7a 72 6f 75 6e | 64 2e 63 3a 20 72 6f 75 |/* zroun|d.c: rou|
|00000010| 6e 64 20 52 20 74 6f 20 | 74 68 65 20 6e 65 61 72 |nd R to |the near|
|00000020| 65 73 74 20 77 68 6f 6c | 65 20 6e 75 6d 62 65 72 |est whol|e number|
|00000030| 2e 20 20 2a 2f 0a 0a 23 | 69 6e 63 6c 75 64 65 20 |. */..#|include |
|00000040| 22 63 6f 6e 66 69 67 2e | 68 22 0a 0a 69 6e 74 65 |"config.|h"..inte|
|00000050| 67 65 72 0a 7a 72 6f 75 | 6e 64 20 28 72 29 0a 20 |ger.zrou|nd (r). |
|00000060| 20 64 6f 75 62 6c 65 20 | 72 3b 0a 7b 0a 20 20 69 | double |r;.{. i|
|00000070| 6e 74 65 67 65 72 20 69 | 3b 0a 0a 20 20 2f 2a 20 |nteger i|;.. /* |
|00000080| 52 20 63 61 6e 20 62 65 | 20 6f 75 74 73 69 64 65 |R can be| outside|
|00000090| 20 74 68 65 20 72 61 6e | 67 65 20 6f 66 20 61 6e | the ran|ge of an|
|000000a0| 20 69 6e 74 65 67 65 72 | 20 69 66 20 67 6c 75 65 | integer| if glue|
|000000b0| 20 69 73 20 73 74 72 65 | 74 63 68 69 6e 67 20 6f | is stre|tching o|
|000000c0| 72 0a 20 20 20 20 20 73 | 68 72 69 6e 6b 69 6e 67 |r. s|hrinking|
|000000d0| 20 61 20 6c 6f 74 2e 20 | 20 57 65 20 63 61 6e 27 | a lot. | We can'|
|000000e0| 74 20 64 6f 20 61 6e 79 | 20 62 65 74 74 65 72 20 |t do any| better |
|000000f0| 74 68 61 6e 20 72 65 74 | 75 72 6e 69 6e 67 20 74 |than ret|urning t|
|00000100| 68 65 20 6c 61 72 67 65 | 73 74 0a 20 20 20 20 20 |he large|st. |
|00000110| 6f 72 20 73 6d 61 6c 6c | 65 73 74 20 69 6e 74 65 |or small|est inte|
|00000120| 67 65 72 20 70 6f 73 73 | 69 62 6c 65 20 69 6e 20 |ger poss|ible in |
|00000130| 74 68 61 74 20 63 61 73 | 65 2e 20 20 49 74 20 64 |that cas|e. It d|
|00000140| 6f 65 73 6e 27 74 20 73 | 65 65 6d 20 74 6f 20 6d |oesn't s|eem to m|
|00000150| 61 6b 65 0a 20 20 20 20 | 20 61 6e 79 20 70 72 61 |ake. | any pra|
|00000160| 63 74 69 63 61 6c 20 64 | 69 66 66 65 72 65 6e 63 |ctical d|ifferenc|
|00000170| 65 2e 20 20 48 65 72 65 | 20 69 73 20 61 20 73 61 |e. Here| is a sa|
|00000180| 6d 70 6c 65 20 69 6e 70 | 75 74 20 66 69 6c 65 20 |mple inp|ut file |
|00000190| 77 68 69 63 68 0a 20 20 | 20 20 20 64 65 6d 6f 6e |which. | demon|
|000001a0| 73 74 72 61 74 65 73 20 | 74 68 65 20 70 72 6f 62 |strates |the prob|
|000001b0| 6c 65 6d 2c 20 66 72 6f | 6d 20 70 68 69 6c 40 63 |lem, fro|m phil@c|
|000001c0| 73 2e 61 72 69 7a 6f 6e | 61 2e 65 64 75 3a 0a 20 |s.arizon|a.edu:. |
|000001d0| 20 20 20 20 20 20 20 5c | 64 6f 63 75 6d 65 6e 74 | \|document|
|000001e0| 73 74 79 6c 65 7b 61 72 | 74 69 63 6c 65 7d 0a 20 |style{ar|ticle}. |
|000001f0| 20 20 20 20 20 20 20 5c | 62 65 67 69 6e 7b 64 6f | \|begin{do|
|00000200| 63 75 6d 65 6e 74 7d 0a | 20 20 20 20 20 20 20 20 |cument}.| |
|00000210| 5c 62 65 67 69 6e 7b 66 | 6c 75 73 68 6c 65 66 74 |\begin{f|lushleft|
|00000220| 7d 0a 20 20 20 20 20 20 | 20 20 24 5c 68 62 6f 78 |}. | $\hbox|
|00000230| 7b 7d 20 24 5c 68 66 69 | 6c 6c 20 0a 20 20 20 20 |{} $\hfi|ll . |
|00000240| 20 20 20 20 5c 66 69 6c | 62 72 65 61 6b 0a 20 20 | \fil|break. |
|00000250| 20 20 20 20 20 20 5c 65 | 6a 65 63 74 0a 20 20 2a | \e|ject. *|
|00000260| 2f 0a 20 20 69 66 20 28 | 72 20 3e 20 4c 4f 4e 47 |/. if (|r > LONG|
|00000270| 5f 4d 41 58 29 0a 20 20 | 20 20 69 20 3d 20 4c 4f |_MAX). | i = LO|
|00000280| 4e 47 5f 4d 41 58 3b 0a | 20 20 65 6c 73 65 20 69 |NG_MAX;.| else i|
|00000290| 66 20 28 72 20 3c 20 4c | 4f 4e 47 5f 4d 49 4e 29 |f (r < L|ONG_MIN)|
|000002a0| 0a 20 20 20 20 69 20 3d | 20 4c 4f 4e 47 5f 4d 49 |. i =| LONG_MI|
|000002b0| 4e 3b 0a 20 20 65 6c 73 | 65 20 69 66 20 28 72 20 |N;. els|e if (r |
|000002c0| 3e 3d 20 30 2e 30 29 0a | 20 20 20 20 69 20 3d 20 |>= 0.0).| i = |
|000002d0| 72 20 2b 20 30 2e 35 3b | 0a 20 20 65 6c 73 65 0a |r + 0.5;|. else.|
|000002e0| 20 20 20 20 69 20 3d 20 | 72 20 2d 20 30 2e 35 3b | i = |r - 0.5;|
|000002f0| 0a 0a 20 20 72 65 74 75 | 72 6e 20 69 3b 0a 7d 0a |.. retu|rn i;.}.|
+--------+-------------------------+-------------------------+--------+--------+