Re: [go-nuts] big.Float.Cmp does not work as expected

2021-02-16 Thread Santhosh T
ithub.com/golang/go/issues/12127 > https://github.com/golang/go/issues/12332 > > However there are links to third-party libraries in those tickets. > > On Tuesday, 16 February 2021 at 21:04:30 UTC Santhosh T wrote: > >> is there java's BigDecimal equivalent in golang ? >

Re: [go-nuts] big.Float.Cmp does not work as expected

2021-02-16 Thread Santhosh T
is there java's BigDecimal equivalent in golang ? thanks Santhosh On Wed, Feb 17, 2021 at 2:05 AM Brian Candler wrote: > You compared Golang's BigFloat with Java's BigDecimal. They are not the > same. > > On Tuesday, 16 February 2021 at 20:30:28 UTC Santhosh T wrote

Re: [go-nuts] big.Float.Cmp does not work as expected

2021-02-16 Thread Santhosh T
in Java, this is not case. BigDecimal v = new BigDecimal("123.4"); System.out.printf("%.20f\n", v); // prints 123.4000 System.out.printf("%.40f\n", v); // prints 123.4000 you can see that it is represented exactly. I thou

Re: [go-nuts] Re: Go based xml manipulation library

2021-02-14 Thread Santhosh T
the dom model, currently only provides Append method. but the all members of model are exported. so it should be possible to write delete by removing node from slice and setting its parent to null. - santhosh On Mon, Feb 15, 2021 at 5:00 AM Tong Sun wrote: > Thank you Santhosh! > > Can the http

Re: [go-nuts] what does p stand for in io.Reader.Read argument

2019-04-06 Thread Santhosh T
now it makes sense. thanks Santhosh On Sat, Apr 6, 2019 at 11:20 PM andrey mirtchovski wrote: > It may help to note that in the earliest references to the Read > interface in the history of the language it accepted a *[]byte, hence > 'p' may indeed stand for pointer. > > > https://github.com/go

Re: [go-nuts] what does p stand for in io.Reader.Read argument

2019-04-06 Thread Santhosh T
epresent any word after all. Naming is hard, but in > the case of a single argument it does not matter that much, so it could be > just a case of author's C habits: void *p for buffers. > > On Sat, Apr 6, 2019, 19:34 Santhosh T wrote: > >> seems my question is not clear.

Re: [go-nuts] what does p stand for in io.Reader.Read argument

2019-04-06 Thread Santhosh T
ich may be any value from > zero to p's length. You must make multiple reads if the thing being read > from holds more data than your buffer array can hold. > > On Sat, Apr 6, 2019 at 9:16 AM Santhosh T > wrote: > >> Hi, >> >> method in io.Reader interface is:

[go-nuts] what does p stand for in io.Reader.Read argument

2019-04-06 Thread Santhosh T
Hi, method in io.Reader interface is: Read(p []byte) (n int, err error) what does `p` stands for ? thanks Santhosh -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an em

[go-nuts] Re: [golang-dev] does net.Conn.SetDeadLine makes syscall ?

2019-04-06 Thread Santhosh T
l. > > On Sat, 6 Apr 2019 at 21:47, Santhosh T wrote: > > > > Hi Dave, > > > > my mistake, bufr is backed by net.Conn > > > > bufr := bufio.newReader(netConn) > > for numEntries >0 { > > numEntries-- > > netConn.s

[go-nuts] Re: [golang-dev] does net.Conn.SetDeadLine makes syscall ?

2019-04-06 Thread Santhosh T
setting the deadline is unnecessary. Please move the > discussion to golang-nuts and consider posting a larger piece of > sample code that shows the interaction with the network. > > On Sat, 6 Apr 2019 at 21:27, Santhosh T wrote: > > > > Hi Dave, > > > > I am imp