1 Star 0 Fork 1

JJ测试团队名字非常的长豪侠好像长颈鹿一/HJJ测试仓库

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ZeroDivisionError.html 22.21 KB
一键复制 编辑 原始数据 按行查看 历史
JJ-H 提交于 2021-02-20 11:36 . upload test
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<!-- classpage -- >
<!-- RD version: 0.44.0 -->
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<meta name='description' content=' Class : ZeroDivisionError - Ruby 2.3.8 ' />
<meta name="ROBOTS" content="NOINDEX, FOLLOW">
<meta content="2019-05-06 16:59:48 -0500" http-equiv="change-date" />
<!-- rel_prefix = '' ENV['RDOC_FOR_WEBSITE'] = false-->
<!-- rel_prefix = '.' asset_rel_prefix = '' -->
<title>Class: ZeroDivisionError (Ruby 2.3.8) </title>
<link rel="stylesheet" href="css/associated.css" type="text/css" >
<!-- link rel="stylesheet" href=".css/obf.css" -->
<link rel="stylesheet" href="css/inuit.css" >
<link rel="stylesheet" href="css/grid.inuit.css" >
<link rel="stylesheet" href="css/2011.css" type="text/css" >
<link rel="stylesheet" href="css/rdoc.css" type="text/css" >
<link rel="stylesheet" href="css/carbon17.css" type="text/css" >
<script src="/js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/rubydoc.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/highlight.min.js"></script>
<script>
hljs.tabReplace = ' ';
hljs.initHighlightingOnLoad();
</script>
<style type='text/css'>
#vulns-alert #vulns{
background-color: #c33 ! important;
width: 100%;
text-align: center;
}
#vulns-alert #vulns a {
color: #F99 ! important;
}
</style>
<link rel="stylesheet" href="css/extra.css" type="text/css" >
<script src="/js/extra.js" ></script>
</head>
<body id="top" class="class rdocstar">
<div id='actionbar' >
<div class='wrapper'>
<ul class='grids g0'></ul>
</div>
<span id='vulns-alert'></span>
<div id='versionheader'>
<p>Support for the Ruby 2.3 series has ended. See <a href='https://www.ruby-lang.org/en/news/2019/03/31/support-of-ruby-2-3-has-ended/'>here</a> for reference.</p>
</div>
</div> <!-- end action bar -->
<div class='wrapper'>
<!-- carbon17 added here 2017-09-09 -->
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="./index.html">Home</a>
<a href="./index.html#classes">Classes</a>
<a href="./index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul id='file-metadata'>
<li class='in-file'>numeric.c</li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<div id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link"><a href="StandardError.html">StandardError</a></p>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul id='files'>
<li class="file"><a href="./_lib/racc/rdoc/grammar_en_rdoc.html">grammar.en.rdoc</a></li>
<li class="file"><a href="./_test/rdoc/test_ja_rdoc.html">test.ja.rdoc</a></li>
<li class="file"><a href="./doc/contributing_rdoc.html">contributing.rdoc</a></li>
<li class="file"><a href="./doc/contributors_rdoc.html">contributors.rdoc</a></li>
<li class="file"><a href="./doc/dtrace_probes_rdoc.html">dtrace_probes.rdoc</a></li>
<li class="file"><a href="./doc/extension_ja_rdoc.html">extension.ja.rdoc</a></li>
<li class="file"><a href="./doc/extension_rdoc.html">extension.rdoc</a></li>
<li class="file"><a href="./doc/globals_rdoc.html">globals.rdoc</a></li>
<li class="file"><a href="./doc/keywords_rdoc.html">keywords.rdoc</a></li>
<li class="file"><a href="./doc/maintainers_rdoc.html">maintainers.rdoc</a></li>
<li class="file"><a href="./doc/marshal_rdoc.html">marshal.rdoc</a></li>
<li class="file"><a href="./doc/regexp_rdoc.html">regexp.rdoc</a></li>
<li class="file"><a href="./doc/security_rdoc.html">security.rdoc</a></li>
<li class="file"><a href="./doc/standard_library_rdoc.html">standard_library.rdoc</a></li>
<li class="file"><a href="./doc/syntax_rdoc.html">syntax.rdoc</a></li>
<li class="file"><a href="./doc/syntax/assignment_rdoc.html">assignment.rdoc</a></li>
<li class="file"><a href="./doc/syntax/calling_methods_rdoc.html">calling_methods.rdoc</a></li>
<li class="file"><a href="./doc/syntax/control_expressions_rdoc.html">control_expressions.rdoc</a></li>
<li class="file"><a href="./doc/syntax/exceptions_rdoc.html">exceptions.rdoc</a></li>
<li class="file"><a href="./doc/syntax/literals_rdoc.html">literals.rdoc</a></li>
<li class="file"><a href="./doc/syntax/methods_rdoc.html">methods.rdoc</a></li>
<li class="file"><a href="./doc/syntax/miscellaneous_rdoc.html">miscellaneous.rdoc</a></li>
<li class="file"><a href="./doc/syntax/modules_and_classes_rdoc.html">modules_and_classes.rdoc</a></li>
<li class="file"><a href="./doc/syntax/precedence_rdoc.html">precedence.rdoc</a></li>
<li class="file"><a href="./doc/syntax/refinements_rdoc.html">refinements.rdoc</a></li>
<li class="file"><a href="./sample/drb/README_ja_rdoc.html">README.ja.rdoc</a></li>
<li class="file"><a href="./sample/drb/README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="./images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="./ArgumentError.html">ArgumentError</a></li>
<li><a href="./Array.html">Array</a></li>
<li><a href="./BasicObject.html">BasicObject</a></li>
<li><a href="./Bignum.html">Bignum</a></li>
<li><a href="./Binding.html">Binding</a></li>
<li><a href="./Class.html">Class</a></li>
<li><a href="./ClosedQueueError.html">ClosedQueueError</a></li>
<li><a href="./Comparable.html">Comparable</a></li>
<li><a href="./Complex.html">Complex</a></li>
<li><a href="./Complex/compatible.html">Complex::compatible</a></li>
<li><a href="./ConditionVariable.html">ConditionVariable</a></li>
<li><a href="./Continuation.html">Continuation</a></li>
<li><a href="./Data.html">Data</a></li>
<li><a href="./Dir.html">Dir</a></li>
<li><a href="./ENV.html">ENV</a></li>
<li><a href="./EOFError.html">EOFError</a></li>
<li><a href="./Encoding.html">Encoding</a></li>
<li><a href="./Encoding/CompatibilityError.html">Encoding::CompatibilityError</a></li>
<li><a href="./Encoding/Converter.html">Encoding::Converter</a></li>
<li><a href="./Encoding/ConverterNotFoundError.html">Encoding::ConverterNotFoundError</a></li>
<li><a href="./Encoding/InvalidByteSequenceError.html">Encoding::InvalidByteSequenceError</a></li>
<li><a href="./Encoding/UndefinedConversionError.html">Encoding::UndefinedConversionError</a></li>
<li><a href="./EncodingError.html">EncodingError</a></li>
<li><a href="./Enumerable.html">Enumerable</a></li>
<li><a href="./Enumerator.html">Enumerator</a></li>
<li><a href="./Enumerator/Generator.html">Enumerator::Generator</a></li>
<li><a href="./Enumerator/Lazy.html">Enumerator::Lazy</a></li>
<li><a href="./Enumerator/Yielder.html">Enumerator::Yielder</a></li>
<li><a href="./Errno.html">Errno</a></li>
<li><a href="./Exception.html">Exception</a></li>
<li><a href="./FalseClass.html">FalseClass</a></li>
<li><a href="./Fiber.html">Fiber</a></li>
<li><a href="./FiberError.html">FiberError</a></li>
<li><a href="./File.html">File</a></li>
<li><a href="./File/Constants.html">File::Constants</a></li>
<li><a href="./File/Stat.html">File::Stat</a></li>
<li><a href="./FileTest.html">FileTest</a></li>
<li><a href="./Fixnum.html">Fixnum</a></li>
<li><a href="./Float.html">Float</a></li>
<li><a href="./FloatDomainError.html">FloatDomainError</a></li>
<li><a href="./GC.html">GC</a></li>
<li><a href="./GC/Profiler.html">GC::Profiler</a></li>
<li><a href="./Hash.html">Hash</a></li>
<li><a href="./IO.html">IO</a></li>
<li><a href="./IO/EAGAINWaitReadable.html">IO::EAGAINWaitReadable</a></li>
<li><a href="./IO/EAGAINWaitWritable.html">IO::EAGAINWaitWritable</a></li>
<li><a href="./IO/EINPROGRESSWaitReadable.html">IO::EINPROGRESSWaitReadable</a></li>
<li><a href="./IO/EINPROGRESSWaitWritable.html">IO::EINPROGRESSWaitWritable</a></li>
<li><a href="./IO/EWOULDBLOCKWaitReadable.html">IO::EWOULDBLOCKWaitReadable</a></li>
<li><a href="./IO/EWOULDBLOCKWaitWritable.html">IO::EWOULDBLOCKWaitWritable</a></li>
<li><a href="./IO/WaitReadable.html">IO::WaitReadable</a></li>
<li><a href="./IO/WaitWritable.html">IO::WaitWritable</a></li>
<li><a href="./IOError.html">IOError</a></li>
<li><a href="./IndexError.html">IndexError</a></li>
<li><a href="./Integer.html">Integer</a></li>
<li><a href="./Interrupt.html">Interrupt</a></li>
<li><a href="./Kernel.html">Kernel</a></li>
<li><a href="./KeyError.html">KeyError</a></li>
<li><a href="./LoadError.html">LoadError</a></li>
<li><a href="./LocalJumpError.html">LocalJumpError</a></li>
<li><a href="./Marshal.html">Marshal</a></li>
<li><a href="./MatchData.html">MatchData</a></li>
<li><a href="./Math.html">Math</a></li>
<li><a href="./Math/DomainError.html">Math::DomainError</a></li>
<li><a href="./Method.html">Method</a></li>
<li><a href="./Module.html">Module</a></li>
<li><a href="./NameError.html">NameError</a></li>
<li><a href="./NilClass.html">NilClass</a></li>
<li><a href="./NoMemoryError.html">NoMemoryError</a></li>
<li><a href="./NoMethodError.html">NoMethodError</a></li>
<li><a href="./NotImplementedError.html">NotImplementedError</a></li>
<li><a href="./Numeric.html">Numeric</a></li>
<li><a href="./Object.html">Object</a></li>
<li><a href="./ObjectSpace.html">ObjectSpace</a></li>
<li><a href="./ObjectSpace/WeakMap.html">ObjectSpace::WeakMap</a></li>
<li><a href="./Proc.html">Proc</a></li>
<li><a href="./Process.html">Process</a></li>
<li><a href="./Process/GID.html">Process::GID</a></li>
<li><a href="./Process/Status.html">Process::Status</a></li>
<li><a href="./Process/Sys.html">Process::Sys</a></li>
<li><a href="./Process/UID.html">Process::UID</a></li>
<li><a href="./Process/Waiter.html">Process::Waiter</a></li>
<li><a href="./Queue.html">Queue</a></li>
<li><a href="./Random.html">Random</a></li>
<li><a href="./Random/Formatter.html">Random::Formatter</a></li>
<li><a href="./Range.html">Range</a></li>
<li><a href="./RangeError.html">RangeError</a></li>
<li><a href="./Rational.html">Rational</a></li>
<li><a href="./Rational/compatible.html">Rational::compatible</a></li>
<li><a href="./Regexp.html">Regexp</a></li>
<li><a href="./RegexpError.html">RegexpError</a></li>
<li><a href="./RubyVM.html">RubyVM</a></li>
<li><a href="./RubyVM/Env.html">RubyVM::Env</a></li>
<li><a href="./RubyVM/InstructionSequence.html">RubyVM::InstructionSequence</a></li>
<li><a href="./RuntimeError.html">RuntimeError</a></li>
<li><a href="./ScriptError.html">ScriptError</a></li>
<li><a href="./SecurityError.html">SecurityError</a></li>
<li><a href="./Signal.html">Signal</a></li>
<li><a href="./SignalException.html">SignalException</a></li>
<li><a href="./SizedQueue.html">SizedQueue</a></li>
<li><a href="./StandardError.html">StandardError</a></li>
<li><a href="./StopIteration.html">StopIteration</a></li>
<li><a href="./String.html">String</a></li>
<li><a href="./Struct.html">Struct</a></li>
<li><a href="./Symbol.html">Symbol</a></li>
<li><a href="./SyntaxError.html">SyntaxError</a></li>
<li><a href="./SystemCallError.html">SystemCallError</a></li>
<li><a href="./SystemExit.html">SystemExit</a></li>
<li><a href="./SystemStackError.html">SystemStackError</a></li>
<li><a href="./Thread.html">Thread</a></li>
<li><a href="./Thread/Backtrace/Location.html">Thread::Backtrace::Location</a></li>
<li><a href="./Thread/Mutex.html">Thread::Mutex</a></li>
<li><a href="./ThreadError.html">ThreadError</a></li>
<li><a href="./ThreadGroup.html">ThreadGroup</a></li>
<li><a href="./Time.html">Time</a></li>
<li><a href="./TracePoint.html">TracePoint</a></li>
<li><a href="./TrueClass.html">TrueClass</a></li>
<li><a href="./TypeError.html">TypeError</a></li>
<li><a href="./UnboundMethod.html">UnboundMethod</a></li>
<li><a href="./UncaughtThrowError.html">UncaughtThrowError</a></li>
<li><a href="./ZeroDivisionError.html">ZeroDivisionError</a></li>
<li><a href="./fatal.html">fatal</a></li>
<li><a href="./unknown.html">unknown</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div> <!-- metadata -->
<div class='adzbox' id="azk83167">
</div>
<div id="documentation">
<h1 class="class">ZeroDivisionError</h1>
<div id="description" class="description">
<p>Raised when attempting to divide an integer by 0.</p>
<pre class="ruby"><span class="ruby-value">42</span> <span class="ruby-operator">/</span> <span class="ruby-value">0</span>
<span class="ruby-comment">#=&gt; ZeroDivisionError: divided by 0</span>
</pre>
<p>Note that only division by an exact 0 will raise the exception:</p>
<pre class="ruby"><span class="ruby-value">42</span> <span class="ruby-operator">/</span> <span class="ruby-value">0.0</span> <span class="ruby-comment">#=&gt; Float::INFINITY</span>
<span class="ruby-value">42</span> <span class="ruby-operator">/</span> <span class="ruby-value">-0.0</span> <span class="ruby-comment">#=&gt; -Float::INFINITY</span>
<span class="ruby-value">0</span> <span class="ruby-operator">/</span> <span class="ruby-value">0.0</span> <span class="ruby-comment">#=&gt; NaN</span>
</pre>
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
</div><!-- 5Buntitled-5D -->
<div id='tx_ZeroDivisionError_versioned' class='associated_wrapper'></div><script type='text/javascript'>$("#tx_ZeroDivisionError_versioned").load("/associated/2.3.8/ZeroDivisionError.ihtml");</script> <div id='tx_ZeroDivisionError' class='associated_wrapper'></div><script type='text/javascript'>$("#tx_ZeroDivisionError").load("/associated/ZeroDivisionError.ihtml");</script>
</div><!-- documentation -->
<div id='dynamic'>
</div>
<div class='grids wrapper' id="footer">
<p><small>This page was generated for Ruby 2.3.8</small></p>
<p><a href="http://ruby-doc.org">Ruby-doc.org</a> is provided by <a href="http://jamesbritt.com">James Britt</a> and <a href="http://neurogami.com">Neurogami</a>. <a href="http://neurogami.com">Hack your world. Feed your head. Live curious</a>. <div class='oio-inline'><ins data-revive-zoneid="1" data-revive-id="58924a5717c091dfee6dda3f7d38c4d7"></ins><script async src="//ras.ruby-doc.org/vvv/delivery/thesinkjs.php"></script></div></p>
<p><small>Generated with Ruby-doc Rdoc Generator 0.44.0</small>.</p>
</div>
</div>
<script type='text/javascript'>
$(document).ready(function() {
$.ajaxSetup({ cache: false });
$("#vulns-alert").load("/associated/vulns.ihtml");
});
</script>
<script type='text/javascript'>
function loadPlus(plusdocs){
$(plusdocs).find("div[class='associated_wrapper']").each (function() {
$("#" + this.id).append($(plusdocs).find("#" + this.id ));
});
}
//function loadInline(json){
// for (var lookFor in json) {
// $(lookFor).after(json[lookFor]);
// }
// } // end loadInline
$(document).ready(function() {
$.ajaxSetup({ cache: false });
$.get('/associated/2.3.8/plus_ZeroDivisionError.ihtml',
function(plusdocs) {
setTimeout(function() {
loadPlus(plusdocs);
}, 2000);
}
);
// $.ajax({
// dataType: "json",
// url: '/associated/2.3.8/inline_ZeroDivisionError.js',
// success: function(json) {
// setTimeout(function() {
// loadInline(json);
// }, 2000);
// }
// });
});
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/jj-test-team/hjj-test-warehouse.git
git@gitee.com:jj-test-team/hjj-test-warehouse.git
jj-test-team
hjj-test-warehouse
HJJ测试仓库
master

搜索帮助