码迷,mamicode.com
首页 >  
搜索关键字:decimal    ( 1358个结果
Decima json 化
class DecimalEncoder(json.JSONEncoder): def default(self, o): if isinstance(o, decimal.Decimal): return float(o) super(DecimalEncoder, self).default(o ...
分类:Web程序   时间:2020-04-03 16:46:18    阅读次数:71
MySQL order by 排序结果不正确
新建一张测试表: CREATE TABLE `tb1` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `a` decimal(19,2) NOT NULL, `acid` bigint(20) NOT NULL, `prid` bigint(20) NOT N ...
分类:数据库   时间:2020-04-01 19:20:23    阅读次数:215
[CF538B] Quasi Binary
[toc] Description A number is called quasibinary if its decimal representation contains only digits 0 or 1. For example, numbers 0, 1, 101, 110011 — a ...
分类:其他好文   时间:2020-03-28 20:25:08    阅读次数:93
1010 Radix
Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 is a ...
分类:其他好文   时间:2020-03-28 13:19:11    阅读次数:58
mysql 速学 模版
create table t1( id int signed not null auto_increment primary key, num decimal(10,5), name char(10) )engine=innodb default charset=utf8; 多对多 双向的FK() ...
分类:数据库   时间:2020-03-26 09:27:25    阅读次数:82
C#数据类型
在C#中,变量分为一下几种类型 1 值类型 2 引用类型 3 指针类型 一 值类型 值类型是从类System.Valuetype中派生。值类型变量可以直接赋值,值类型直接包含数据。 比如bool、byte、char、decimal、double、float、int、long、sbyte(8位有符号整 ...
分类:Windows程序   时间:2020-03-24 23:02:55    阅读次数:105
反序列化Newtonsoft.Json.JsonReaderException:“Could not convert string to decimal: . Path 'SETTLEAMT', line 1, position 180.”
一个小小的问题 我居然纠结了小半天,我也是醉醉的了喔,天啊 到最后发现。。。。。的问题,之前总感觉是我写法或者哪里的小细节的地方呢,我去 着急的我都想讲 脏话了,嗯 稳住 淑女 调试到这里的时候一直感觉 没有问题啊,哪里的问题。。。 然后 换了一下思路,代码 确实 没啥问题 要不把这个引用的Newt ...
分类:Web程序   时间:2020-03-24 21:36:26    阅读次数:211
C#MVC之传入字典的模型项为 null,但此字典需要类型“System.Decimal”的非 null 模型项。
在调试ASP.NET MVC时出现:传入字典的模型项为 null,但此字典需要类型“System.Decimal”的非 null 模型项。 问题原因:在控制器里面的View没有返回项应的结果给视图 处理后: ...
分类:Windows程序   时间:2020-03-23 09:39:59    阅读次数:95
Python3-math常用模块
代码: import math from decimal import Decimal from decimal import getcontext from fractions import Fraction def func_test(num_list, num_list2): ''''' ma ...
分类:编程语言   时间:2020-03-21 18:13:05    阅读次数:76
D - Notepad CodeForces - 17D (欧拉降幂)
题目链接:http://codeforces.com/problemset/problem/17/D Nick is attracted by everything unconventional. He doesn't like decimal number system any more, and ...
分类:其他好文   时间:2020-03-21 16:23:31    阅读次数:65
1358条   上一页 1 ... 7 8 9 10 11 ... 136 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!