HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/ri/3.0.0/system/BigDecimal/div-i.ri
U:RDoc::AnyMethod[iI"div:ETI"BigDecimal#div;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"#Divide by the specified value.;To:RDoc::Markup::BlankLineo:RDoc::Markup::List:
@type:	NOTE:@items[o:RDoc::Markup::ListItem:@label[I"digits;T;	[o;
;	[I"HIf specified and less than the number of significant digits of the ;TI"Gresult, the result is rounded to that number of digits, according ;TI"to BigDecimal.mode.;T@o;
;	[I"BIf digits is 0, the result is the same as for the / operator ;TI"
or #quo.;T@o;
;	[I";If digits is not specified, the result is an integer, ;TI";by analogy with Float#div; see also BigDecimal#divmod.;T@o;
;	[I"Examples:;T@o:RDoc::Markup::Verbatim;	[I"a = BigDecimal("4")
;TI"b = BigDecimal("3")
;TI"
;TI"a.div(b, 3)  # => 0.133e1
;TI"
;TI"/a.div(b, 0)  # => 0.1333333333333333333e1
;TI"/a / b        # => 0.1333333333333333333e1
;TI"/a.quo(b)     # => 0.1333333333333333333e1
;TI"
;TI"a.div(b)     # => 1;T:@format0:
@fileI" ext/bigdecimal/bigdecimal.c;T:0@omit_headings_from_table_of_contents_below0I"2div(value, digits)  -> bigdecimal or integer
;T0[I"(p1, p2 = v2);T@1FI"BigDecimal;TcRDoc::NormalClass00